From 9bd609e4dd0f78a64c70a16a7de4a963aa4b4b91 Mon Sep 17 00:00:00 2001 From: Christian Ditaputratama Date: Thu, 12 Sep 2024 05:27:54 +0700 Subject: [PATCH] chore: Remove dev SQL statement --- internal/database/schema.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/database/schema.go b/internal/database/schema.go index a6c39a3..be1d206 100644 --- a/internal/database/schema.go +++ b/internal/database/schema.go @@ -261,13 +261,10 @@ func v3(db *DB) error { slog.Debug("[DB] Migrating database schema version 3") // table: tbl_node - // TODO: Remove IF NOT EXISTS SQL statement below after merging to main - // branch. The statement only to accomodate commit 518d4b4 so future main - // branch keep on schema version 3. slog.Debug("[DB] Adding additional columns to tbl_node") _, err := db.Exec(` ALTER TABLE tbl_node - ADD COLUMN IF NOT EXISTS ipv6_only TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' AFTER cors_capable, + ADD COLUMN ipv6_only TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' AFTER cors_capable, ADD COLUMN ip_addresses TEXT NOT NULL DEFAULT '' AFTER cors_capable;`) if err != nil { return err