Bug 37601: (QA follow-up) Change updated_on to modification_date in accordance with Bug 37592

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Paul Derscheid 2024-09-16 10:17:29 +00:00 committed by Katrin Fischer
parent 2b6bd66fd2
commit 20cf1fd7b6
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -14,7 +14,8 @@ return {
return;
}
my $after = 'AFTER' . ( column_exists( 'bookings', 'updated_on' ) ? q{`updated_on`} : q{`end_date`} );
my $after =
'AFTER' . ( column_exists( 'bookings', 'modification_date' ) ? q{`modification_date`} : 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;