Add editorial and description columns
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 14 Feb 2015 08:53:58 +0000 (10:53 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 14 Feb 2015 08:53:58 +0000 (10:53 +0200)
db.sql
lib/Gruntmaster/Data/Result/Contest.pm

diff --git a/db.sql b/db.sql
index 56b1a7e2c0a80d13fdcde39a0fa85422da3bd4fc..706265ea6b49f0eff9ce6f6c220b6e74ad86d0e6 100644 (file)
--- a/db.sql
+++ b/db.sql
@@ -14,12 +14,14 @@ CREATE TABLE users (
 );
 
 CREATE TABLE contests (
-       id    TEXT PRIMARY KEY,
-       name  TEXT NOT NULL,
-       start INT  NOT NULL,
-       stop  INT  NOT NULL,
-       owner TEXT NOT NULL REFERENCES users ON DELETE CASCADE,
-       CONSTRAINT positive_duration CHECK (stop > start)
+       id          TEXT PRIMARY KEY,
+       name        TEXT NOT NULL,
+       editorial   TEXT,
+       description TEXT,
+       start       INT  NOT NULL,
+       stop        INT  NOT NULL,
+       owner       TEXT NOT NULL REFERENCES users ON DELETE CASCADE,
+       CONSTRAINT  positive_duration CHECK (stop > start)
 );
 
 CREATE TABLE contest_status (
@@ -125,6 +127,8 @@ INSERT INTO column_comments VALUES ('users', 'since', 'Unix time when this user
 
 INSERT INTO column_comments VALUES ('contests', 'start', 'Unix time when contest starts');
 INSERT INTO column_comments VALUES ('contests', 'stop', 'Unix time when contest ends');
+INSERT INTO column_comments VALUES ('contests', 'editorial', 'HTML fragment placed before the editorial');
+INSERT INTO column_comments VALUES ('contests', 'description', 'HTML fragment placed on contest page');
 
 INSERT INTO column_comments VALUES ('problems', 'author', 'Full name(s) of problem author(s)/problemsetter(s)/tester(s)/etc');
 INSERT INTO column_comments VALUES ('problems', 'writer', 'Full name(s) of statement writer(s) (DEPRECATED)');
index 2a57c95f4a4247d5e145db5e7f135e693a60ab26..1da4badddb7cf880ddad4310f08eefd7c17c0ef1 100644 (file)
@@ -33,6 +33,20 @@ __PACKAGE__->table("contests");
   data_type: 'text'
   is_nullable: 0
 
+=head2 editorial
+
+  data_type: 'text'
+  is_nullable: 1
+
+HTML fragment placed before the editorial
+
+=head2 description
+
+  data_type: 'text'
+  is_nullable: 1
+
+HTML fragment placed on contest page
+
 =head2 start
 
   data_type: 'integer'
@@ -60,6 +74,10 @@ __PACKAGE__->add_columns(
   { data_type => "text", is_nullable => 0 },
   "name",
   { data_type => "text", is_nullable => 0 },
+  "editorial",
+  { data_type => "text", is_nullable => 1 },
+  "description",
+  { data_type => "text", is_nullable => 1 },
   "start",
   { data_type => "integer", is_nullable => 0 },
   "stop",
@@ -168,8 +186,8 @@ Composing rels: L</contest_problems> -> problem
 __PACKAGE__->many_to_many("problems", "contest_problems", "problem");
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-12-19 16:54:00
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IxxZqQwKisBwDabCNUD55Q
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-02-14 10:52:58
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UTfqBbyhmo0r1HyWtGXidA
 
 use Class::Method::Modifiers qw/after/;
 use List::Util qw/sum/;
This page took 0.013096 seconds and 4 git commands to generate.