Commit ec7f231e authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Is is now possible to add new NOT NULL columns in mucTable. JM-547

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3365 b35dd754-fafc-0310-a699-88a17e54d16e
parent 002ab5e9
...@@ -32,11 +32,13 @@ CREATE TABLE mucRoomProp ( ...@@ -32,11 +32,13 @@ CREATE TABLE mucRoomProp (
); );
REM // mucRoom: Add new columns: "useReservedNick", "canChangeNick" and "canRegister". REM // mucRoom: Add new columns: "useReservedNick", "canChangeNick" and "canRegister".
ALTER TABLE mucRoom ADD useReservedNick INTEGER NOT NULL; ALTER TABLE mucRoom ADD useReservedNick INTEGER NULL;
ALTER TABLE mucRoom ADD canChangeNick INTEGER NOT NULL; ALTER TABLE mucRoom ADD canChangeNick INTEGER NULL;
ALTER TABLE mucRoom ADD canRegister INTEGER NOT NULL; ALTER TABLE mucRoom ADD canRegister INTEGER NULL;
UPDATE mucRoom set useReservedNick=0, canChangeNick=1, canRegister=1; UPDATE mucRoom set useReservedNick=0, canChangeNick=1, canRegister=1;
ALTER TABLE mucRoom MODIFY useReservedNick INTEGER NOT NULL;
ALTER TABLE mucRoom MODIFY canChangeNick INTEGER NOT NULL;
ALTER TABLE mucRoom MODIFY canRegister INTEGER NOT NULL;
REM // jiveVCard: Recreate table from scratch REM // jiveVCard: Recreate table from scratch
DROP TABLE jiveVCard; DROP TABLE jiveVCard;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment