Commit 1f147968 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Added default values to new fields in mucRoom.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1626 b35dd754-fafc-0310-a699-88a17e54d16e
parent 7b25df1c
......@@ -35,3 +35,5 @@ CREATE TABLE mucRoomProp (
ALTER TABLE mucRoom ADD COLUMN useReservedNick INTEGER NOT NULL;
ALTER TABLE mucRoom ADD COLUMN canChangeNick INTEGER NOT NULL;
ALTER TABLE mucRoom ADD COLUMN canRegister INTEGER NOT NULL;
UPDATE mucRoom set useReservedNick=0, canChangeNick=1, canRegister=1;
......@@ -32,6 +32,6 @@ CREATE TABLE mucRoomProp (
);
// mucRoom: Add new columns: "useReservedNick", "canChangeNick" and "canRegister".
ALTER TABLE mucRoom ADD COLUMN useReservedNick INTEGER NOT NULL;
ALTER TABLE mucRoom ADD COLUMN canChangeNick INTEGER NOT NULL;
ALTER TABLE mucRoom ADD COLUMN canRegister INTEGER NOT NULL;
ALTER TABLE mucRoom ADD COLUMN useReservedNick INTEGER DEFAULT 0 NOT NULL;
ALTER TABLE mucRoom ADD COLUMN canChangeNick INTEGER DEFAULT 1 NOT NULL;
ALTER TABLE mucRoom ADD COLUMN canRegister INTEGER DEFAULT 1 NOT NULL;
\ No newline at end of file
......@@ -36,3 +36,4 @@ ALTER TABLE mucRoom ADD COLUMN useReservedNick TINYINT NOT NULL;
ALTER TABLE mucRoom ADD COLUMN canChangeNick TINYINT NOT NULL;
ALTER TABLE mucRoom ADD COLUMN canRegister TINYINT NOT NULL;
UPDATE mucRoom set useReservedNick=0, canChangeNick=1, canRegister=1;
......@@ -35,3 +35,5 @@ REM // mucRoom: Add new columns: "useReservedNick", "canChangeNick" and "canRegi
ALTER TABLE mucRoom ADD useReservedNick INTEGER NOT NULL;
ALTER TABLE mucRoom ADD canChangeNick INTEGER NOT NULL;
ALTER TABLE mucRoom ADD canRegister INTEGER NOT NULL;
UPDATE mucRoom set useReservedNick=0, canChangeNick=1, canRegister=1;
......@@ -35,3 +35,5 @@ CREATE TABLE mucRoomProp (
ALTER TABLE mucRoom ADD COLUMN useReservedNick INTEGER NOT NULL;
ALTER TABLE mucRoom ADD COLUMN canChangeNick INTEGER NOT NULL;
ALTER TABLE mucRoom ADD COLUMN canRegister INTEGER NOT NULL;
UPDATE mucRoom set useReservedNick=0, canChangeNick=1, canRegister=1;
......@@ -35,3 +35,5 @@ CREATE TABLE mucRoomProp (
ALTER TABLE mucRoom ADD useReservedNick INT NOT NULL;
ALTER TABLE mucRoom ADD canChangeNick INT NOT NULL;
ALTER TABLE mucRoom ADD canRegister INT NOT NULL;
UPDATE mucRoom set useReservedNick=0, canChangeNick=1, canRegister=1;
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