From 822c8b570c2be6ae2b37ae03b9293a426c02502e Mon Sep 17 00:00:00 2001 From: Christoph Kluge Date: Tue, 21 Feb 2023 18:05:29 +0100 Subject: [PATCH] Remove exists checks from sql migrations to v3 --- .../repository/migrations/mysql/03_add-userprojects.down.sql | 2 +- internal/repository/migrations/mysql/03_add-userprojects.up.sql | 2 +- .../repository/migrations/sqlite3/03_add-userprojects.down.sql | 2 +- .../repository/migrations/sqlite3/03_add-userprojects.up.sql | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/repository/migrations/mysql/03_add-userprojects.down.sql b/internal/repository/migrations/mysql/03_add-userprojects.down.sql index e42c7d1..a6d5b37 100644 --- a/internal/repository/migrations/mysql/03_add-userprojects.down.sql +++ b/internal/repository/migrations/mysql/03_add-userprojects.down.sql @@ -1 +1 @@ -ALTER TABLE user DROP COLUMN IF EXISTS projects; \ No newline at end of file +ALTER TABLE user DROP COLUMN projects; \ No newline at end of file diff --git a/internal/repository/migrations/mysql/03_add-userprojects.up.sql b/internal/repository/migrations/mysql/03_add-userprojects.up.sql index 4e9c635..003cafd 100644 --- a/internal/repository/migrations/mysql/03_add-userprojects.up.sql +++ b/internal/repository/migrations/mysql/03_add-userprojects.up.sql @@ -1 +1 @@ -ALTER TABLE user ADD COLUMN IF NOT EXISTS projects varchar(255) NOT NULL DEFAULT "[]"; \ No newline at end of file +ALTER TABLE user ADD COLUMN projects varchar(255) NOT NULL DEFAULT "[]"; \ No newline at end of file diff --git a/internal/repository/migrations/sqlite3/03_add-userprojects.down.sql b/internal/repository/migrations/sqlite3/03_add-userprojects.down.sql index e42c7d1..a6d5b37 100644 --- a/internal/repository/migrations/sqlite3/03_add-userprojects.down.sql +++ b/internal/repository/migrations/sqlite3/03_add-userprojects.down.sql @@ -1 +1 @@ -ALTER TABLE user DROP COLUMN IF EXISTS projects; \ No newline at end of file +ALTER TABLE user DROP COLUMN projects; \ No newline at end of file diff --git a/internal/repository/migrations/sqlite3/03_add-userprojects.up.sql b/internal/repository/migrations/sqlite3/03_add-userprojects.up.sql index 4e9c635..759e158 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 IF NOT EXISTS projects varchar(255) NOT NULL DEFAULT "[]"; \ No newline at end of file +ALTER TABLE user ADD COLUMN projects varchar(255) NOT NULL; \ No newline at end of file