From 823da09ef343a6c45a33f5919eade8783267d451 Mon Sep 17 00:00:00 2001 From: Steven Miers Date: Fri, 24 Jul 2015 16:57:48 -0500 Subject: [PATCH] Re-add NULL constraint. --- db/manifest | 3 ++- db/up/repair_band_profile.sql | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 db/up/repair_band_profile.sql diff --git a/db/manifest b/db/manifest index bd6ca8ce6..691ae0001 100755 --- a/db/manifest +++ b/db/manifest @@ -296,4 +296,5 @@ add_description_to_perf_samples.sql alter_genre_player_unique_constraint.sql musician_search.sql enhance_band_profile.sql -alter_band_profile_rate_defaults.sql \ No newline at end of file +alter_band_profile_rate_defaults.sql +repair_band_profile.sql diff --git a/db/up/repair_band_profile.sql b/db/up/repair_band_profile.sql new file mode 100644 index 000000000..1a87f51a4 --- /dev/null +++ b/db/up/repair_band_profile.sql @@ -0,0 +1,3 @@ +ALTER TABLE musicians_instruments ALTER COLUMN player_id SET NOT NULL; +ALTER TABLE performance_samples ALTER COLUMN player_id SET NOT NULL; +ALTER TABLE online_presences ALTER COLUMN player_id SET NOT NULL; \ No newline at end of file