From 6a03bf0d4696d03963747bb482ed2ffe0a76ad98 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 30 Mar 2014 13:00:01 +0300 Subject: [PATCH] Add statement writer column to problems --- db.sql | 1 + lib/Gruntmaster/Data/Result/Problem.pm | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/db.sql b/db.sql index ab499d8..01a31f3 100644 --- a/db.sql +++ b/db.sql @@ -27,6 +27,7 @@ CREATE TABLE contests ( CREATE TABLE problems ( id TEXT PRIMARY KEY, author TEXT, + writer TEXT, generator GENERATOR NOT NULL, judge JUDGE NOT NULL, level PLEVEL NOT NULL, diff --git a/lib/Gruntmaster/Data/Result/Problem.pm b/lib/Gruntmaster/Data/Result/Problem.pm index 18e1852..572c489 100644 --- a/lib/Gruntmaster/Data/Result/Problem.pm +++ b/lib/Gruntmaster/Data/Result/Problem.pm @@ -33,6 +33,11 @@ __PACKAGE__->table("problems"); data_type: 'text' is_nullable: 1 +=head2 writer + + data_type: 'text' + is_nullable: 1 + =head2 generator data_type: 'enum' @@ -131,6 +136,8 @@ __PACKAGE__->add_columns( { data_type => "text", is_nullable => 0 }, "author", { data_type => "text", is_nullable => 1 }, + "writer", + { data_type => "text", is_nullable => 1 }, "generator", { data_type => "enum", @@ -274,8 +281,8 @@ Composing rels: L -> contest __PACKAGE__->many_to_many("contests", "contest_problems", "contest"); -# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-26 15:24:46 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QeM8iOMQE3lqG2tXKbpRxw +# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-30 12:59:34 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ujwyMJ5Pup1i5NKXkPkg2g # You can replace this text with custom code or comments, and it will be preserved on regeneration -- 2.39.2