From d0d578a1e606f8b85731a36e6673e4fd83b30977 Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Wed, 22 Feb 2023 10:17:40 +0100 Subject: [PATCH] Fix user.projects up migration file --- .gitignore | 1 + .../repository/migrations/sqlite3/03_add-userprojects.up.sql | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 36b051f..e757ce7 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ /var/job-archive /var/*.db /var/machine-state +/var-backup /.env /config.json diff --git a/internal/repository/migrations/sqlite3/03_add-userprojects.up.sql b/internal/repository/migrations/sqlite3/03_add-userprojects.up.sql index 759e158..003cafd 100644 --- a/internal/repository/migrations/sqlite3/03_add-userprojects.up.sql +++ b/internal/repository/migrations/sqlite3/03_add-userprojects.up.sql @@ -1 +1 @@ -ALTER TABLE user ADD COLUMN projects varchar(255) NOT NULL; \ No newline at end of file +ALTER TABLE user ADD COLUMN projects varchar(255) NOT NULL DEFAULT "[]"; \ No newline at end of file