cc-backend/internal/repository/migrations/sqlite3/06_change-config.down.sql

5 lines
238 B
MySQL
Raw Normal View History

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;