Update event types in EventManagement and EventsPageSection components: Replace existing event types with new categories (ATELIER, KATA, PRESENTATION, LEARNING_HOUR) to better reflect current offerings. Adjust related functions and seed data to ensure consistency across the application.

This commit is contained in:
Julien Froidefond
2025-12-10 05:48:23 +01:00
parent a69613a232
commit a6c329ff15
8 changed files with 56 additions and 55 deletions

View File

@@ -0,0 +1,3 @@
-- Mettre à jour les types d'événements existants
UPDATE "Event" SET "type" = 'KATA' WHERE "type" = 'CODE_KATA';
UPDATE "Event" SET "type" = 'KATA' WHERE "type" IN ('SUMMIT', 'LAUNCH', 'FESTIVAL', 'COMPETITION');

View File

@@ -0,0 +1,7 @@
-- Mettre à jour les types d'événements existants
-- CODE_KATA devient KATA
UPDATE "Event" SET "type" = 'KATA' WHERE "type" = 'CODE_KATA';
-- Les autres types (SUMMIT, LAUNCH, FESTIVAL, COMPETITION) seront remplacés par KATA par défaut
UPDATE "Event" SET "type" = 'KATA' WHERE "type" IN ('SUMMIT', 'LAUNCH', 'FESTIVAL', 'COMPETITION');