I henhold til MySQL-manualen, version 5.5, Automatisk initialisering og opdatering for TIMESTAMP
CREATE TABLE t1 (
ts TIMESTAMP
);
Dog
CREATE TABLE t1 (
ts TIMESTAMP DEFAULT 0
);
Så dette burde virke:
CREATE TABLE AlarmHistory
(
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
value DOUBLE NOT NULL,
startedStamp TIMESTAMP DEFAULT 0 NOT NULL,
finishedStamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL
);