Bug 15084: DBIx::Class - Shema changes
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 17 Dec 2015 10:57:48 +0000 (10:57 +0000)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Thu, 3 Mar 2016 20:39:02 +0000 (20:39 +0000)
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
Koha/Schema/Result/Currency.pm

index 594ebf1..82f68f3 100644 (file)
@@ -60,6 +60,12 @@ __PACKAGE__->table("currency");
   data_type: 'tinyint'
   is_nullable: 1
 
+=head2 archived
+
+  data_type: 'tinyint'
+  default_value: 0
+  is_nullable: 1
+
 =cut
 
 __PACKAGE__->add_columns(
@@ -80,6 +86,8 @@ __PACKAGE__->add_columns(
   { data_type => "float", is_nullable => 1, size => [15, 5] },
   "active",
   { data_type => "tinyint", is_nullable => 1 },
+  "archived",
+  { data_type => "tinyint", default_value => 0, is_nullable => 1 },
 );
 
 =head1 PRIMARY KEY
@@ -126,9 +134,24 @@ __PACKAGE__->has_many(
   { cascade_copy => 0, cascade_delete => 0 },
 );
 
+=head2 aqorders
+
+Type: has_many
+
+Related object: L<Koha::Schema::Result::Aqorder>
+
+=cut
+
+__PACKAGE__->has_many(
+  "aqorders",
+  "Koha::Schema::Result::Aqorder",
+  { "foreign.currency" => "self.currency" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
 
-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-05-04 22:05:05
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MqgYbFC8CTfcBHyAiIcdVA
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-12-17 10:57:24
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:B9JY/pDkp8icT7m0xDDKAA
 
 
 # You can replace this text with custom content, and it will be preserved on regeneration