]> iEval git - gruntmaster-data.git/commitdiff
Default job date to NOW()
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 12 Apr 2015 15:16:55 +0000 (18:16 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 12 Apr 2015 15:16:55 +0000 (18:16 +0300)
db.sql

diff --git a/db.sql b/db.sql
index d2f658e03f979a8b90ba7942aba685ad67203bc0..46ddcdb7569e6fa7a84c15f32889d3adb9557af3 100644 (file)
--- a/db.sql
+++ b/db.sql
@@ -68,7 +68,7 @@ CREATE TABLE jobs (
        id          SERIAL  PRIMARY KEY,
        contest     TEXT    REFERENCES contests ON DELETE CASCADE,
        daemon      TEXT,
-       date        BIGINT  NOT NULL,
+       date        BIGINT  NOT NULL DEFAULT CAST(EXTRACT(epoch from now()) AS bigint),
        errors      TEXT,
        extension   TEXT    NOT NULL,
        format      TEXT    NOT NULL,
This page took 0.031661 seconds and 4 git commands to generate.