/*
  Warnings:

  - Added the required column `max_seats_per_order` to the `ticketypes` table without a default value. This is not possible if the table is not empty.

*/
-- AlterTable
ALTER TABLE `ticketypes` ADD COLUMN `max_seats_per_order` INT NULL,
    ADD COLUMN `sold_out` BOOLEAN NOT NULL DEFAULT false,
    ADD COLUMN `visible` BOOLEAN NOT NULL DEFAULT true;
UPDATE `ticketypes` SET `max_seats_per_order` = `seats`;
ALTER TABLE `ticketypes` MODIFY COLUMN `max_seats_per_order` INT NOT NULL;