Fix ptc by making ts column explicitly NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP.

This commit is contained in:
Daniel Nichter
2013-06-25 18:30:12 -07:00
parent 302a9a21a1
commit 70f5c17bc4
4 changed files with 5 additions and 8 deletions

View File

@@ -12,6 +12,6 @@ CREATE TABLE truncated_checksums (
this_cnt int NOT NULL,
master_crc char(40) NULL,
master_cnt int NULL,
ts timestamp NOT NULL,
ts timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (db, tbl, chunk)
) ENGINE=InnoDB;