users.locidispid must be bigint, too

This commit is contained in:
Scott Comer 2014-02-24 16:31:53 -06:00
parent b33206683b
commit 4153cfe3a1
2 changed files with 8 additions and 0 deletions

View File

@ -123,3 +123,4 @@ scores_create_tables.sql
remove_is_downloadable.sql
scores_mod_connections2.sql
track_download_counts.sql
scores_mod_users2.sql

View File

@ -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;