mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 12:51:40 +02:00
Fix header, add migration for user.projects column
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
"github.com/golang-migrate/migrate/v4/source/iofs"
|
||||
)
|
||||
|
||||
const supportedVersion uint = 2
|
||||
const supportedVersion uint = 3
|
||||
|
||||
//go:embed migrations/*
|
||||
var migrationFiles embed.FS
|
||||
|
@@ -0,0 +1 @@
|
||||
ALTER TABLE user DROP COLUMN IF EXISTS projects;
|
@@ -0,0 +1 @@
|
||||
ALTER TABLE user ADD COLUMN IF NOT EXISTS projects varchar(255) NOT NULL DEFAULT "[]";
|
@@ -0,0 +1 @@
|
||||
ALTER TABLE user DROP COLUMN IF EXISTS projects;
|
@@ -0,0 +1 @@
|
||||
ALTER TABLE user ADD COLUMN IF NOT EXISTS projects varchar(255) NOT NULL DEFAULT "[]";
|
Reference in New Issue
Block a user