Bug 37601: (QA follow-up) Rename status 'created' as 'new' to be more consistent with other modules

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

View file

@ -18,7 +18,7 @@ return {
'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;
ADD COLUMN `status` ENUM('new', 'cancelled') NOT NULL DEFAULT 'new' COMMENT 'current status of the booking' $after;
SQL
if ( $dbh->do($statement) ) {
say_success( $out, q{Added column 'bookings.status'} );