From 4153cfe3a1640e1292d33140b7bf31b4e28eddaf Mon Sep 17 00:00:00 2001 From: Scott Comer Date: Mon, 24 Feb 2014 16:31:53 -0600 Subject: [PATCH] users.locidispid must be bigint, too --- db/manifest | 1 + db/up/scores_mod_users2.sql | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 db/up/scores_mod_users2.sql diff --git a/db/manifest b/db/manifest index af6d8c9c0..143b2b9d6 100755 --- a/db/manifest +++ b/db/manifest @@ -123,3 +123,4 @@ scores_create_tables.sql remove_is_downloadable.sql scores_mod_connections2.sql track_download_counts.sql +scores_mod_users2.sql diff --git a/db/up/scores_mod_users2.sql b/db/up/scores_mod_users2.sql new file mode 100644 index 000000000..2dd4fe936 --- /dev/null +++ b/db/up/scores_mod_users2.sql @@ -0,0 +1,7 @@ +-- locidispid must be bigint + +ALTER TABLE users DROP COLUMN locidispid; +ALTER TABLE users ADD COLUMN locidispid BIGINT; +ALTER TABLE users ALTER COLUMN locidispid SET DEFAULT 0; +UPDATE users SET locidispid = 0; +ALTER TABLE users ALTER COLUMN locidispid SET NOT NULL;