Bug 19036: DBIC Schema Updates
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 25 Jun 2020 09:43:03 +0000 (10:43 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 20 Aug 2020 10:31:59 +0000 (12:31 +0200)
Dumped schema updates + manual addition of boolean flags

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Koha/Schema/Result/AccountCreditType.pm
Koha/Schema/Result/Accountline.pm

index 4ee8e86..602b1fd 100644 (file)
@@ -41,6 +41,14 @@ __PACKAGE__->table("account_credit_types");
   default_value: 1
   is_nullable: 0
 
+=head2 credit_number_enabled
+
+  data_type: 'tinyint'
+  default_value: 0
+  is_nullable: 0
+
+Is autogeneration of credit number enabled for this credit type
+
 =head2 is_system
 
   data_type: 'tinyint'
@@ -62,6 +70,8 @@ __PACKAGE__->add_columns(
   { data_type => "varchar", is_nullable => 1, size => 200 },
   "can_be_added_manually",
   { data_type => "tinyint", default_value => 1, is_nullable => 0 },
+  "credit_number_enabled",
+  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
   "is_system",
   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
   "archived",
@@ -113,11 +123,13 @@ __PACKAGE__->has_many(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-02-20 14:48:55
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hdxcXxCqIDxwfSHjSr0VUg
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-06-25 09:19:20
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GESL9hjEPlrQBiuHO4haAw
 
 __PACKAGE__->add_columns(
-    '+is_system' => { is_boolean => 1 }
+    '+is_system'             => { is_boolean => 1 },
+    '+credit_number_enabled' => { is_boolean => 1 },
+    '+archived'              => { is_boolean => 1 }
 );
 
 sub koha_objects_class {
index 2b14943..3a5a48c 100644 (file)
@@ -77,6 +77,14 @@ __PACKAGE__->table("accountlines");
   is_nullable: 1
   size: 80
 
+=head2 credit_number
+
+  data_type: 'varchar'
+  is_nullable: 1
+  size: 20
+
+autogenerated number for credits
+
 =head2 status
 
   data_type: 'varchar'
@@ -157,6 +165,8 @@ __PACKAGE__->add_columns(
   { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 80 },
   "debit_type_code",
   { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 80 },
+  "credit_number",
+  { data_type => "varchar", is_nullable => 1, size => 20 },
   "status",
   { data_type => "varchar", is_nullable => 1, size => 16 },
   "payment_type",
@@ -367,8 +377,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-19 09:20:20
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BuE4CYsSH4BwXZoQKE2MWw
+# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-06-25 09:19:20
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:I/S3NLbod+8BgBMcwYz+cA
 
 =head2 library