summaryrefslogtreecommitdiffstats
path: root/upgrades/dbpatches/1.4/mysql/patch/node_cksum.sql
diff options
context:
space:
mode:
Diffstat (limited to 'upgrades/dbpatches/1.4/mysql/patch/node_cksum.sql')
-rw-r--r--upgrades/dbpatches/1.4/mysql/patch/node_cksum.sql11
1 files changed, 11 insertions, 0 deletions
diff --git a/upgrades/dbpatches/1.4/mysql/patch/node_cksum.sql b/upgrades/dbpatches/1.4/mysql/patch/node_cksum.sql
new file mode 100644
index 00000000..6e8752a7
--- /dev/null
+++ b/upgrades/dbpatches/1.4/mysql/patch/node_cksum.sql
@@ -0,0 +1,11 @@
+CREATE TABLE node_cksum (
+ cksumid bigint unsigned DEFAULT '0' NOT NULL,
+ nodeid bigint unsigned DEFAULT '0' NOT NULL,
+ tablename varchar(64) DEFAULT '' NOT NULL,
+ fieldname varchar(64) DEFAULT '' NOT NULL,
+ recordid bigint unsigned DEFAULT '0' NOT NULL,
+ cksumtype integer DEFAULT '0' NOT NULL,
+ cksum char(32) DEFAULT '' NOT NULL,
+ PRIMARY KEY (cksumid)
+) ENGINE=InnoDB;
+CREATE INDEX node_cksum_cksum_1 on node_cksum (nodeid,tablename,fieldname,recordid,cksumtype);