mirror of
https://github.com/ditatompel/xmr-remote-nodes.git
synced 2024-11-16 17:07:36 +00:00
chore: Remove dev SQL statement
This commit is contained in:
parent
cdb0816bc3
commit
9bd609e4dd
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue