]> git.rm.cloudns.org Git - xonotic/xonstatdb.git/commitdiff
Add the ladder code table.
authorAnt Zucaro <azucaro@gmail.com>
Tue, 21 Aug 2012 01:28:58 +0000 (21:28 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Tue, 21 Aug 2012 01:28:58 +0000 (21:28 -0400)
tables/cd_ladder.tab [new file with mode: 0644]

diff --git a/tables/cd_ladder.tab b/tables/cd_ladder.tab
new file mode 100644 (file)
index 0000000..fbc9f00
--- /dev/null
@@ -0,0 +1,15 @@
+CREATE TABLE xonstat.cd_ladder
+(
+  ladder_cd serial NOT NULL,
+  title character varying(100) NOT NULL,
+  descr character varying(200) NOT NULL,
+  create_dt timestamp without time zone NOT NULL DEFAULT (current_timestamp at time zone 'UTC'),
+  start_dt date NOT NULL,
+  end_dt date NOT NULL,
+  active_ind boolean NOT NULL DEFAULT true,
+  CONSTRAINT cd_ladder_pk PRIMARY KEY (ladder_cd)
+)
+WITH (
+  OIDS=FALSE
+);
+ALTER TABLE xonstat.cd_ladder OWNER TO xonstat;