Project

General

Profile

« Previous | Next » 

Revision 9513

inputs/.TNRS/schema.sql: tnrs.Time_submitted: set default to now() (the timestamp of the start of the current transaction, http://www.postgresql.org/docs/9.1/static/functions-datetime.html) so that it would automatically be populated when rows are added. note that because the start of the current transaction instead of the exact time at insertion is used, all rows inserted in the same transaction (e.g. as part of the same batch) will have the same value for this, linking them together.

View differences:

schema.sql
9 9

  
10 10
CREATE TABLE tnrs
11 11
(
12
  "Time_submitted" timestamp with time zone,
12
  "Time_submitted" timestamp with time zone DEFAULT now(),
13 13
  "Name_number" text,
14 14
  "Name_submitted" text NOT NULL,
15 15
  "Overall_score" text,

Also available in: Unified diff