Cleaned up MySql migrations a bit more, got rid of all old-form migration files. Restored Presence table to its taboo-breaking form.

soprefactor
Diva Canto 2010-05-20 20:24:50 -07:00
parent 13c22015e5
commit 213e372253
5 changed files with 8 additions and 32 deletions

View File

@ -1,5 +0,0 @@
BEGIN;
ALTER TABLE assets ADD COLUMN asset_flags INTEGER NOT NULL DEFAULT 0;
COMMIT;

View File

@ -1,3 +0,0 @@
BEGIN;
ALTER TABLE regionsettings ADD map_tile_ID CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000';
COMMIT;

View File

@ -1,3 +1,5 @@
:VERSION 1 # --------------------------
BEGIN; BEGIN;
CREATE TABLE `GridUser` ( CREATE TABLE `GridUser` (

View File

@ -4,32 +4,11 @@ BEGIN;
CREATE TABLE `Presence` ( CREATE TABLE `Presence` (
`UserID` VARCHAR(255) NOT NULL, `UserID` VARCHAR(255) NOT NULL,
`RegionID` CHAR(36) NOT NULL, `RegionID` CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
`SessionID` CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000', `SessionID` CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
`SecureSessionID` CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000', `SecureSessionID` CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000'
`Online` CHAR(5) NOT NULL DEFAULT 'false',
`Login` CHAR(16) NOT NULL DEFAULT '0',
`Logout` CHAR(16) NOT NULL DEFAULT '0',
`Position` CHAR(64) NOT NULL DEFAULT '<0,0,0>',
`LookAt` CHAR(64) NOT NULL DEFAULT '<0,0,0>'
) ENGINE=InnoDB; ) ENGINE=InnoDB;
COMMIT;
:VERSION 2 # --------------------------
BEGIN;
ALTER TABLE Presence ADD COLUMN `HomeRegionID` CHAR(36) NOT NULL;
ALTER TABLE Presence ADD COLUMN `HomePosition` CHAR(64) NOT NULL DEFAULT '<0,0,0>';
ALTER TABLE Presence ADD COLUMN `HomeLookAt` CHAR(64) NOT NULL DEFAULT '<0,0,0>';
COMMIT;
:VERSION 3 # --------------------------
BEGIN;
CREATE UNIQUE INDEX SessionID ON Presence(SessionID); CREATE UNIQUE INDEX SessionID ON Presence(SessionID);
CREATE INDEX UserID ON Presence(UserID); CREATE INDEX UserID ON Presence(UserID);

View File

@ -801,6 +801,9 @@ BEGIN;
ALTER TABLE estate_settings AUTO_INCREMENT = 100; ALTER TABLE estate_settings AUTO_INCREMENT = 100;
COMMIT; COMMIT;
:VERSION 33 #---------------------
BEGIN;
ALTER TABLE regionsettings ADD map_tile_ID CHAR(36) NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000';
COMMIT;