mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 13:29:05 +01:00
Merge branch 'hotfix' of https://github.com/ClusterCockpit/cc-backend into hotfix
This commit is contained in:
commit
b6be76eb07
@ -16,7 +16,7 @@ import (
|
|||||||
"github.com/golang-migrate/migrate/v4/source/iofs"
|
"github.com/golang-migrate/migrate/v4/source/iofs"
|
||||||
)
|
)
|
||||||
|
|
||||||
const Version uint = 5
|
const Version uint = 6
|
||||||
|
|
||||||
//go:embed migrations/*
|
//go:embed migrations/*
|
||||||
var migrationFiles embed.FS
|
var migrationFiles embed.FS
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE configuration MODIFY value VARCHAR(255);
|
@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE configuration MODIFY value TEXT;
|
@ -0,0 +1,4 @@
|
|||||||
|
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;
|
@ -0,0 +1,4 @@
|
|||||||
|
ALTER TABLE configuration ADD COLUMN value_new TEXT;
|
||||||
|
INSERT INTO configuration (value_new) SELECT value FROM configuration;
|
||||||
|
ALTER TABLE configuration DROP COLUMN value;
|
||||||
|
ALTER TABLE configuration RENAME COLUMN value_new TO value;
|
Loading…
Reference in New Issue
Block a user