Update schema
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 24 Mar 2014 07:26:44 +0000 (09:26 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 24 Mar 2014 07:26:44 +0000 (09:26 +0200)
db.sql
lib/Gruntmaster/Data/Result/Job.pm
lib/Gruntmaster/Data/Result/Open.pm
lib/Gruntmaster/Data/Result/Problem.pm

diff --git a/db.sql b/db.sql
index 5992b412da70e5e0b206f1eb30500027a778b059..eafd89ed66f0f79870200ef168a763e3a3e744c8 100644 (file)
--- a/db.sql
+++ b/db.sql
@@ -36,6 +36,7 @@ CREATE TABLE problems (
        runner    RUNNER    NOT NULL,
        statement TEXT      NOT NULL,
        testcnt   INT       NOT NULL,
+       tests     TEXT,
        timeout   REAL      NOT NULL,
        value     INT,
        verformat TEXT,
index 6f1084ffe98408dcde59b8f57133ddea2f90d281..b52ddfccf96afb29ef29d41b5eecc1e9cf9ca1f1 100644 (file)
@@ -34,7 +34,7 @@ __PACKAGE__->table("jobs");
 
   data_type: 'text'
   is_foreign_key: 1
-  is_nullable: 0
+  is_nullable: 1
 
 =head2 daemon
 
@@ -110,7 +110,7 @@ __PACKAGE__->add_columns(
     sequence          => "jobs_id_seq",
   },
   "contest",
-  { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
+  { data_type => "text", is_foreign_key => 1, is_nullable => 1 },
   "daemon",
   { data_type => "text", is_nullable => 1 },
   "date",
@@ -163,7 +163,12 @@ __PACKAGE__->belongs_to(
   "contest",
   "Gruntmaster::Data::Result::Contest",
   { id => "contest" },
-  { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
+  {
+    is_deferrable => 0,
+    join_type     => "LEFT",
+    on_delete     => "NO ACTION",
+    on_update     => "NO ACTION",
+  },
 );
 
 =head2 owner
@@ -197,8 +202,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-06 12:41:16
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lIETgGgMTSOUUuDuFa/+SQ
+# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-24 09:25:07
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mDHQWFk/K7q/nHu+Z3a0+A
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
index cd0c7e1e883ecb0a8b5eb48cbe044e3ea8faed66..52b7578b4f469601b90f3958f76ada48b97245f6 100644 (file)
@@ -123,8 +123,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-06 12:41:16
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+zXnz+V4BYSNwxN65ovu2w
+# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-24 09:25:07
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MgoDt8QyQeSpjIJZEd5RXQ
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
index 5359df72997d8ffa633b618aa7e0f13feb0715b4..6b12ac552951d3fd18723f2428eb96f449e15a8e 100644 (file)
@@ -70,6 +70,7 @@ __PACKAGE__->table("problems");
 =head2 private
 
   data_type: 'boolean'
+  default_value: false
   is_nullable: 0
 
 =head2 runner
@@ -88,6 +89,11 @@ __PACKAGE__->table("problems");
   data_type: 'integer'
   is_nullable: 0
 
+=head2 tests
+
+  data_type: 'text'
+  is_nullable: 1
+
 =head2 timeout
 
   data_type: 'real'
@@ -143,7 +149,7 @@ __PACKAGE__->add_columns(
   "owner",
   { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
   "private",
-  { data_type => "boolean", is_nullable => 0 },
+  { data_type => "boolean", default_value => \"false", is_nullable => 0 },
   "runner",
   {
     data_type => "enum",
@@ -157,6 +163,8 @@ __PACKAGE__->add_columns(
   { data_type => "text", is_nullable => 0 },
   "testcnt",
   { data_type => "integer", is_nullable => 0 },
+  "tests",
+  { data_type => "text", is_nullable => 1 },
   "timeout",
   { data_type => "real", is_nullable => 0 },
   "value",
@@ -252,8 +260,8 @@ Composing rels: L</contest_problems> -> contest
 __PACKAGE__->many_to_many("contests", "contest_problems", "contest");
 
 
-# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-06 12:41:16
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:y1LUGcxNJxUMgMXqvAkKYQ
+# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-24 09:25:07
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dZicbasR8lUFGhIabrWxXw
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration
This page took 0.015471 seconds and 4 git commands to generate.