cc-backend/internal/repository/migrations/sqlite3/06_change-config.down.sql
2023-06-29 14:55:38 +02:00

5 lines
238 B
SQL

ALTER TABLE configuration ADD COLUMN value_new varchar(255);
INSERT INTO configuration (value_new) SELECT value FROM configuration;
ALTER TABLE configuration DROP COLUMN value;
ALTER TABLE configuration RENAME COLUMN value_new TO value;