From 4822bf161fd7f03ae8cbfae852e198413f5208fe Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Mon, 5 Nov 2012 21:54:26 -0500 Subject: [PATCH] add location fields --- manifest | 3 ++- up/locations.sql | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 up/locations.sql diff --git a/manifest b/manifest index 3b1bfcc95..b6acab26a 100644 --- a/manifest +++ b/manifest @@ -8,4 +8,5 @@ invitations.sql instruments.sql musician_access.sql tracks.sql -followers.sql \ No newline at end of file +followers.sql +locations.sql \ No newline at end of file diff --git a/up/locations.sql b/up/locations.sql new file mode 100644 index 000000000..ac961480a --- /dev/null +++ b/up/locations.sql @@ -0,0 +1,7 @@ +ALTER TABLE users ADD COLUMN city VARCHAR(100) NOT NULL DEFAULT 'City'; +ALTER TABLE users ADD COLUMN state VARCHAR(2); +ALTER TABLE users ADD COLUMN country VARCHAR(100); + +ALTER TABLE bands ADD COLUMN city VARCHAR(100) NOT NULL DEFAULT 'City'; +ALTER TABLE bands ADD COLUMN state VARCHAR(2); +ALTER TABLE bands ADD COLUMN country VARCHAR(100); \ No newline at end of file