Bug 37601: (follow-up) Change updated_at to updated_on in accordance with Bug 37592
Signed-off-by: LEBSimonsen <simonsen@bz-sh.de> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
0846e45a1e
commit
262646bd60
2
installer/data/mysql/atomicupdate/bug_37601-add-status-field-to-bookings-table.pl
Normal file → Executable file
2
installer/data/mysql/atomicupdate/bug_37601-add-status-field-to-bookings-table.pl
Normal file → Executable file
|
|
@ -14,7 +14,7 @@ return {
|
|||
return;
|
||||
}
|
||||
|
||||
my $after = 'AFTER' . ( column_exists( 'bookings', 'updated_at' ) ? q{`updated_at`} : q{`end_date`} );
|
||||
my $after = 'AFTER' . ( column_exists( 'bookings', 'updated_on' ) ? q{`updated_on`} : q{`end_date`} );
|
||||
my $statement = <<~"SQL";
|
||||
ALTER TABLE `bookings`
|
||||
ADD COLUMN `status` ENUM('created', 'cancelled') NOT NULL DEFAULT 'created' COMMENT 'current status of the booking' $after;
|
||||
|
|
|
|||
Loading…
Reference in New Issue