portail-associations/drizzle/0016_association_thematics_multiselect.sql

21 lines
483 B
SQL

ALTER TABLE `associations`
MODIFY `thematique` text;
--> statement-breakpoint
UPDATE `associations`
SET `thematique` = JSON_ARRAY(`thematique`)
WHERE `thematique` IS NOT NULL
AND `thematique` NOT LIKE '[%';
--> statement-breakpoint
ALTER TABLE `associationDirectoryEntries`
MODIFY `thematique` text;
--> statement-breakpoint
UPDATE `associationDirectoryEntries`
SET `thematique` = JSON_ARRAY(`thematique`)
WHERE `thematique` IS NOT NULL
AND `thematique` NOT LIKE '[%';