Fix header, add migration for user.projects column

This commit is contained in:
Christoph Kluge
2023-02-21 17:33:27 +01:00
parent e0e51813ad
commit acbef39045
6 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -0,0 +1 @@
ALTER TABLE user DROP COLUMN IF EXISTS projects;

View File

@@ -0,0 +1 @@
ALTER TABLE user ADD COLUMN IF NOT EXISTS projects varchar(255) NOT NULL DEFAULT "[]";

View File

@@ -0,0 +1 @@
ALTER TABLE user DROP COLUMN IF EXISTS projects;

View File

@@ -0,0 +1 @@
ALTER TABLE user ADD COLUMN IF NOT EXISTS projects varchar(255) NOT NULL DEFAULT "[]";