Fix HGTravelStore.migrations in SQLite (mantis #6709)
parent
64cda1b26e
commit
0d5b2dd5ce
|
@ -1,18 +1,18 @@
|
||||||
:VERSION 1 # --------------------------
|
:VERSION 2 # --------------------------
|
||||||
|
|
||||||
BEGIN;
|
BEGIN;
|
||||||
|
|
||||||
CREATE TABLE hg_traveling_data (
|
CREATE TABLE hg_traveling_data(
|
||||||
SessionID VARCHAR(36) NOT NULL,
|
SessionID VARCHAR(36) NOT NULL,
|
||||||
UserID VARCHAR(36) NOT NULL,
|
UserID VARCHAR(36) NOT NULL,
|
||||||
GridExternalName VARCHAR(255) NOT NULL DEFAULT '',
|
GridExternalName VARCHAR(255) NOT NULL DEFAULT "",
|
||||||
ServiceToken VARCHAR(255) NOT NULL DEFAULT '',
|
ServiceToken VARCHAR(255) NOT NULL DEFAULT "",
|
||||||
ClientIPAddress VARCHAR(16) NOT NULL DEFAULT '',
|
ClientIPAddress VARCHAR(16) NOT NULL DEFAULT "",
|
||||||
MyIPAddress VARCHAR(16) NOT NULL DEFAULT '',
|
MyIPAddress VARCHAR(16) NOT NULL DEFAULT "",
|
||||||
TMStamp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
TMStamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||||
PRIMARY KEY (`SessionID`),
|
PRIMARY KEY(SessionID),
|
||||||
KEY (`UserID`)
|
UNIQUE(UserID)
|
||||||
) ENGINE=InnoDB;
|
);
|
||||||
|
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue