Bug 29002: Fix database update idempotency

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2023-10-19 11:40:04 +01:00 committed by Tomas Cohen Arazi
parent e8abbf0814
commit f5eed5f2e3
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -34,7 +34,7 @@ return {
if ( !column_exists( 'deleteditems', 'bookable' ) ) {
$dbh->do(q{
ALTER TABLE items ADD COLUMN `bookable` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'boolean value defining whether this this item is available for bookings or not' AFTER `barcode`
ALTER TABLE deleteditems ADD COLUMN `bookable` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'boolean value defining whether this this item is available for bookings or not' AFTER `barcode`
});
}
},