diff options
Diffstat (limited to 'upgrades/dbpatches/1.3/postgresql/patch/node_configlog.sql')
-rw-r--r-- | upgrades/dbpatches/1.3/postgresql/patch/node_configlog.sql | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/upgrades/dbpatches/1.3/postgresql/patch/node_configlog.sql b/upgrades/dbpatches/1.3/postgresql/patch/node_configlog.sql new file mode 100644 index 00000000..121d5737 --- /dev/null +++ b/upgrades/dbpatches/1.3/postgresql/patch/node_configlog.sql @@ -0,0 +1,12 @@ +CREATE TABLE node_configlog ( + conflogid bigint unsigned DEFAULT '0' NOT NULL, + nodeid bigint unsigned DEFAULT '0' NOT NULL, + tablename varchar(64) DEFAULT '' NOT NULL, + recordid bigint unsigned DEFAULT '0' NOT NULL, + operation integer DEFAULT '0' NOT NULL, + sync_master integer DEFAULT '0' NOT NULL, + sync_slave integer DEFAULT '0' NOT NULL, + PRIMARY KEY (nodeid,conflogid) +) ENGINE=InnoDB; +CREATE INDEX node_configlog_configlog_1 on node_configlog (conflogid); +CREATE INDEX node_configlog_configlog_2 on node_configlog (nodeid,tablename); |