Specify default values in Postgres schema (#3110)
This commit is contained in:
parent
31ee64d7e1
commit
02b94590bf
1 changed files with 6 additions and 6 deletions
|
@ -50,16 +50,16 @@ CREATE TABLE events (
|
||||||
"start" timestamp without time zone DEFAULT now() NOT NULL,
|
"start" timestamp without time zone DEFAULT now() NOT NULL,
|
||||||
"end" timestamp without time zone DEFAULT now() NOT NULL,
|
"end" timestamp without time zone DEFAULT now() NOT NULL,
|
||||||
recurrence varchar(255) DEFAULT NULL,
|
recurrence varchar(255) DEFAULT NULL,
|
||||||
title character varying(255) NOT NULL,
|
title character varying(255) NOT NULL DEFAULT '',
|
||||||
description text NOT NULL,
|
description text NOT NULL DEFAULT '',
|
||||||
location character varying(255) NOT NULL,
|
location character varying(255) NOT NULL DEFAULT '',
|
||||||
categories character varying(255) NOT NULL,
|
categories character varying(255) NOT NULL DEFAULT '',
|
||||||
url character varying(255) NOT NULL,
|
url character varying(255) NOT NULL DEFAULT '',
|
||||||
all_day smallint NOT NULL DEFAULT 0,
|
all_day smallint NOT NULL DEFAULT 0,
|
||||||
free_busy smallint NOT NULL DEFAULT 0,
|
free_busy smallint NOT NULL DEFAULT 0,
|
||||||
priority smallint NOT NULL DEFAULT 0,
|
priority smallint NOT NULL DEFAULT 0,
|
||||||
sensitivity smallint NOT NULL DEFAULT 0,
|
sensitivity smallint NOT NULL DEFAULT 0,
|
||||||
status character varying(32) NOT NULL,
|
status character varying(32) NOT NULL DEFAULT '',
|
||||||
alarms varchar(255) DEFAULT NULL,
|
alarms varchar(255) DEFAULT NULL,
|
||||||
attendees text DEFAULT NULL,
|
attendees text DEFAULT NULL,
|
||||||
notifyat timestamp without time zone DEFAULT NULL,
|
notifyat timestamp without time zone DEFAULT NULL,
|
||||||
|
|
Loading…
Add table
Reference in a new issue