chore: Remove dev SQL statement

This commit is contained in:
Christian Ditaputratama 2024-09-12 05:27:54 +07:00
parent cdb0816bc3
commit 9bd609e4dd
No known key found for this signature in database
GPG key ID: 31D3D06D77950979

View file

@ -261,13 +261,10 @@ func v3(db *DB) error {
slog.Debug("[DB] Migrating database schema version 3") slog.Debug("[DB] Migrating database schema version 3")
// table: tbl_node // 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") slog.Debug("[DB] Adding additional columns to tbl_node")
_, err := db.Exec(` _, err := db.Exec(`
ALTER TABLE tbl_node 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;`) ADD COLUMN ip_addresses TEXT NOT NULL DEFAULT '' AFTER cors_capable;`)
if err != nil { if err != nil {
return err return err