Presence.migrations 828 B

123456789101112131415161718192021222324252627282930
  1. :VERSION 1
  2. BEGIN TRANSACTION
  3. CREATE TABLE [Presence] (
  4. [UserID] varchar(255) NOT NULL,
  5. [RegionID] uniqueidentifier NOT NULL,
  6. [SessionID] uniqueidentifier NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
  7. [SecureSessionID] uniqueidentifier NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
  8. [Online] char(5) NOT NULL DEFAULT 'false',
  9. [Login] char(16) NOT NULL DEFAULT '0',
  10. [Logout] char(16) NOT NULL DEFAULT '0',
  11. [Position] char(64) NOT NULL DEFAULT '<0,0,0>',
  12. [LookAt] char(64) NOT NULL DEFAULT '<0,0,0>',
  13. [HomeRegionID] uniqueidentifier NOT NULL,
  14. [HomePosition] CHAR(64) NOT NULL DEFAULT '<0,0,0>',
  15. [HomeLookAt] CHAR(64) NOT NULL DEFAULT '<0,0,0>',
  16. )
  17. ON [PRIMARY]
  18. COMMIT
  19. :VERSION 2
  20. BEGIN TRANSACTION
  21. CREATE UNIQUE INDEX SessionID ON Presence(SessionID);
  22. CREATE INDEX UserID ON Presence(UserID);
  23. COMMIT