From b635d3799c38aa55e8293a8ad4e606c466d6bad9 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Thu, 22 Nov 2012 03:54:42 -0500 Subject: [PATCH] remove not null constraints on location data --- manifest | 3 ++- up/make_location_nullable.sql | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 up/make_location_nullable.sql diff --git a/manifest b/manifest index 6ae6dd162..4343951f5 100644 --- a/manifest +++ b/manifest @@ -22,4 +22,5 @@ music_session_all_params.sql as_musician.sql bootstrap_users_v3.sql update_user_band_fields.sql -add_recording_creator_id.sql \ No newline at end of file +add_recording_creator_id.sql +make_location_nullable.sql \ No newline at end of file diff --git a/up/make_location_nullable.sql b/up/make_location_nullable.sql new file mode 100644 index 000000000..1bd8e455c --- /dev/null +++ b/up/make_location_nullable.sql @@ -0,0 +1,7 @@ +alter table users alter column city drop not null; +alter table users alter column state drop not null; +alter table users alter column country drop not null; + +alter table bands alter column city drop not null; +alter table bands alter column state drop not null; +alter table bands alter column country drop not null; \ No newline at end of file