# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
-$VERSION = "18.06.00.010";
+$VERSION = "18.06.00.011";
sub version {
return $VERSION;
datetime_undef_if_invalid: 1
is_nullable: 1
+=head2 noteseen
+
+ data_type: 'integer'
+ is_nullable: 1
+
=cut
__PACKAGE__->add_columns(
datetime_undef_if_invalid => 1,
is_nullable => 1,
},
+ "noteseen",
+ { data_type => "integer", is_nullable => 1 },
);
=head1 PRIMARY KEY
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:skFfce3y1eEx3rSdFaLmPg
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-07-23 13:51:40
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+mlcId4odhAFp3HHgV/+tg
__PACKAGE__->belongs_to(
"borrower",
datetime_undef_if_invalid: 1
is_nullable: 1
+=head2 noteseen
+
+ data_type: 'integer'
+ is_nullable: 1
+
=cut
__PACKAGE__->add_columns(
datetime_undef_if_invalid => 1,
is_nullable => 1,
},
+ "noteseen",
+ { data_type => "integer", is_nullable => 1 },
);
=head1 PRIMARY KEY
);
-# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RKLeDDEz22G5BU/ZAl7QLA
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-07-23 13:51:40
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1f688Osvh/sxg2P/qffZ2g
__PACKAGE__->belongs_to(
"borrower",
+++ /dev/null
-$DBversion = 'XXX';
-if( CheckVersion( $DBversion ) ) {
- unless( column_exists( 'issues', 'noteseen' ) ) {
- $dbh->do(q|ALTER TABLE issues ADD COLUMN noteseen int(1) default NULL AFTER notedate|);
- }
-
- unless( column_exists( 'old_issues', 'noteseen' ) ) {
- $dbh->do(q|ALTER TABLE old_issues ADD COLUMN noteseen int(1) default NULL AFTER notedate|);
- }
-
- SetVersion( $DBversion );
- print "Upgrade to $DBversion done (Bug 17698: Add column issues.noteseen and old_issues.noteseen)\n";
-}
+++ /dev/null
-INSERT IGNORE INTO permissions (module_bit, code, description) VALUES ( 1, 'manage_checkout_notes', 'Mark checkout notes as seen/not seen');
print "Upgrade to $DBversion done (Bug 19191 - Add ability to email receipts for account payments and write-offs)\n";
}
+$DBversion = '18.06.00.011';
+if( CheckVersion( $DBversion ) ) {
+ unless( column_exists( 'issues', 'noteseen' ) ) {
+ $dbh->do(q|ALTER TABLE issues ADD COLUMN noteseen int(1) default NULL AFTER notedate|);
+ }
+
+ unless( column_exists( 'old_issues', 'noteseen' ) ) {
+ $dbh->do(q|ALTER TABLE old_issues ADD COLUMN noteseen int(1) default NULL AFTER notedate|);
+ }
+ $dbh->do(q|INSERT IGNORE INTO permissions (module_bit, code, description) VALUES ( 1, 'manage_checkout_notes', 'Mark checkout notes as seen/not seen');|);
+ SetVersion( $DBversion );
+ print "Upgrade to $DBversion done (Bug 17698: Add column issues.noteseen and old_issues.noteseen)\n";
+}
+
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.