mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-27 05:49:04 +01:00
parent
7174f27a89
commit
dd80d5af9e
@ -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