summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjasplin <qt-info@nokia.com>2011-02-03 13:34:01 +0100
committerjasplin <qt-info@nokia.com>2011-02-03 13:34:01 +0100
commit22a2951289c0b6d7e3d7e03dbd4c71a09185e8e4 (patch)
treeebc5805e315babc5f9cd1b0b012d18b0d7f211e5
parent71030e53ceead30687702f17a72fe36c932ae22a (diff)
Fixed bug: timestamp in context table gets current server time as default.
-rw-r--r--database/scripts/tabledefs.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/database/scripts/tabledefs.sql b/database/scripts/tabledefs.sql
index 9d1fb2c..1964011 100644
--- a/database/scripts/tabledefs.sql
+++ b/database/scripts/tabledefs.sql
@@ -12,7 +12,7 @@ CREATE TABLE context
sha1Id BIGINT NOT NULL REFERENCES sha1 ON DELETE CASCADE,
-- Timestamp: (approximated with earliest known startTime)
- timestamp TIMESTAMP NOT NULL,
+ timestamp TIMESTAMP NOT NULL DEFAULT now(),
UNIQUE(hostId, platformId, branchId, sha1Id)
) WITH (OIDS=FALSE);