-- Migration: add email invitation columns to invites table -- Run this on the existing database before deploying the new code ALTER TABLE invites ADD COLUMN statut ENUM('en_attente','acceptee','refusee') NOT NULL DEFAULT 'en_attente' AFTER mail_envoye, ADD COLUMN token VARCHAR(64) DEFAULT NULL AFTER statut, ADD COLUMN invitation_sent_at TIMESTAMP NULL DEFAULT NULL AFTER token, ADD COLUMN photo_url VARCHAR(255) DEFAULT NULL AFTER invitation_sent_at, ADD COLUMN site_web VARCHAR(255) DEFAULT NULL AFTER photo_url, ADD COLUMN visit_number INT UNSIGNED NOT NULL DEFAULT 1 AFTER photo_url;