|
@@ -1,6 +1,7 @@
|
|
-INSERT INTO version (table_name, table_version) values ('location','1004');
|
|
|
|
|
|
+INSERT INTO version (table_name, table_version) values ('location','5');
|
|
CREATE TABLE location (
|
|
CREATE TABLE location (
|
|
id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
|
|
id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL,
|
|
|
|
+ ruid VARCHAR(64) DEFAULT '' NOT NULL,
|
|
username VARCHAR(64) DEFAULT '' NOT NULL,
|
|
username VARCHAR(64) DEFAULT '' NOT NULL,
|
|
domain VARCHAR(64) DEFAULT NULL,
|
|
domain VARCHAR(64) DEFAULT NULL,
|
|
contact VARCHAR(255) DEFAULT '' NOT NULL,
|
|
contact VARCHAR(255) DEFAULT '' NOT NULL,
|
|
@@ -15,7 +16,8 @@ CREATE TABLE location (
|
|
cflags INT(11) DEFAULT 0 NOT NULL,
|
|
cflags INT(11) DEFAULT 0 NOT NULL,
|
|
user_agent VARCHAR(255) DEFAULT '' NOT NULL,
|
|
user_agent VARCHAR(255) DEFAULT '' NOT NULL,
|
|
socket VARCHAR(64) DEFAULT NULL,
|
|
socket VARCHAR(64) DEFAULT NULL,
|
|
- methods INT(11) DEFAULT NULL
|
|
|
|
|
|
+ methods INT(11) DEFAULT NULL,
|
|
|
|
+ instance VARCHAR(255) DEFAULT '' NOT NULL
|
|
) ENGINE=MyISAM;
|
|
) ENGINE=MyISAM;
|
|
|
|
|
|
CREATE INDEX account_contact_idx ON location (username, domain, contact);
|
|
CREATE INDEX account_contact_idx ON location (username, domain, contact);
|