Update sessions table columns for consistency (#2299)

* Update sessions table columns for consistency

Fix #2276
This update changes two columns in the sessions table to match the
column declartations in the users table.

* Update servatrice.sql

Update servatrice.sql to reflect new db schema version
This commit is contained in:
woogerboy21 2016-12-08 01:43:11 -08:00 committed by ctrlaltca
parent c78eed576f
commit c9a8dafd01
3 changed files with 10 additions and 4 deletions

View file

@ -0,0 +1,6 @@
-- Servatrice db migration from version 18 to version 19
alter table cockatrice_sessions modify column `user_name` varchar(35) NOT NULL;
alter table cockatrice_sessions modify column `ip_address` varchar(255) NOT NULL;
UPDATE cockatrice_schema_version SET version=19 WHERE version=18;