Add a column precnt - number of pretests
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 14 Feb 2015 07:43:24 +0000 (09:43 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 14 Feb 2015 07:43:24 +0000 (09:43 +0200)
db.sql
lib/Gruntmaster/Data/Result/Problem.pm

diff --git a/db.sql b/db.sql
index 475138b627c8e755d9a6edc259b1ff74bd0cccd4..56b1a7e2c0a80d13fdcde39a0fa85422da3bd4fc 100644 (file)
--- a/db.sql
+++ b/db.sql
@@ -46,6 +46,7 @@ CREATE TABLE problems (
        solution  TEXT ,
        statement TEXT    NOT NULL,
        testcnt   INT     NOT NULL,
+       precnt    INT,
        tests     TEXT,
        timeout   REAL    NOT NULL,
        value     INT     NOT NULL,
@@ -136,6 +137,7 @@ INSERT INTO column_comments VALUES ('problems', 'timeout', 'Time limit (in secon
 INSERT INTO column_comments VALUES ('problems', 'solution', 'Solution (HTML)');
 INSERT INTO column_comments VALUES ('problems', 'statement', 'Statement (HTML)');
 INSERT INTO column_comments VALUES ('problems', 'testcnt', 'Number of tests');
+INSERT INTO column_comments VALUES ('problems', 'precnt', 'Number of pretests. NULL indicates full feedback.');
 INSERT INTO column_comments VALUES ('problems', 'tests', 'JSON array of test values for ::Runner::File');
 INSERT INTO column_comments VALUES ('problems', 'value', 'Problem value when used in a contest.');
 INSERT INTO column_comments VALUES ('problems', 'genformat', 'Format (programming language) of the generator if using the Run generator');
index 4cf06b2a7e1c1cec43a9613f13800517a650a8f9..2ce4f68524be60a712e1102adaf16f1170e3b625 100644 (file)
@@ -115,6 +115,13 @@ Statement (HTML)
 
 Number of tests
 
+=head2 precnt
+
+  data_type: 'integer'
+  is_nullable: 1
+
+Number of pretests. NULL indicates full feedback.
+
 =head2 tests
 
   data_type: 'text'
@@ -195,6 +202,8 @@ __PACKAGE__->add_columns(
   { data_type => "text", is_nullable => 0 },
   "testcnt",
   { data_type => "integer", is_nullable => 0 },
+  "precnt",
+  { data_type => "integer", is_nullable => 1 },
   "tests",
   { data_type => "text", is_nullable => 1 },
   "timeout",
@@ -311,8 +320,8 @@ Composing rels: L</contest_problems> -> contest
 __PACKAGE__->many_to_many("contests", "contest_problems", "contest");
 
 
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-12-19 16:54:00
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QZHyWOWaPmTm/EQ5M22CGA
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-02-14 09:42:26
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sc9vhXkFlp0UaLK7w0OUXA
 
 use Class::Method::Modifiers qw/after/;
 
This page took 0.012953 seconds and 4 git commands to generate.