Bug 11391: (follow-up) update DBIC schema classes
authorGalen Charlton <gmc@esilibrary.com>
Fri, 13 Dec 2013 01:11:06 +0000 (01:11 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 23 Dec 2013 16:21:01 +0000 (16:21 +0000)
This patch updates the DBIC schema class for Suggestion
to reflect the dropped default value for the suggesteddate
column.

To test:

[1] Create an empty Pg database and use the deployment script
    being worked in in bug 11390.  The deployment shoudl
    succeed without reporting any errors regarding the
    suggestions table.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Koha/Schema/Result/Suggestion.pm

index 5e394fc..c1ae103 100644 (file)
@@ -39,7 +39,6 @@ __PACKAGE__->table("suggestions");
 
   data_type: 'date'
   datetime_undef_if_invalid: 1
-  default_value: '0000-00-00'
   is_nullable: 0
 
 =head2 managedby
@@ -215,12 +214,7 @@ __PACKAGE__->add_columns(
   "suggestedby",
   { data_type => "integer", default_value => 0, is_nullable => 0 },
   "suggesteddate",
-  {
-    data_type => "date",
-    datetime_undef_if_invalid => 1,
-    default_value => "0000-00-00",
-    is_nullable => 0,
-  },
+  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 },
   "managedby",
   { data_type => "integer", is_nullable => 1 },
   "manageddate",
@@ -299,8 +293,8 @@ __PACKAGE__->add_columns(
 __PACKAGE__->set_primary_key("suggestionid");
 
 
-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CQRbWbu5MBouyD67ArSRNw
+# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-12-13 01:10:43
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LJoqZVAeoZ0ra2BKxXRQMQ
 
 
 # You can replace this text with custom content, and it will be preserved on regeneration