Bug 19036: DBIC Schema Updates
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>
This commit is contained in:
parent
d46fa45dbf
commit
1d1efa4a04
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue