diff options
author | Gabe Kangas <gabek@real-ity.com> | 2022-04-22 23:17:22 -0700 |
---|---|---|
committer | Gabe Kangas <gabek@real-ity.com> | 2022-04-22 23:17:22 -0700 |
commit | 5e1b14f435bd96b65b5b9df8361d63d6fbf8ed58 (patch) | |
tree | 691c1cca30a648b7ea4ee662d6425a05b3a6f48b | |
parent | e1c44d002b9b4d7ef3b716ee5e107e0dffe8da97 (diff) |
tmp workaround for nightly buildnightly-fix
-rw-r--r-- | core/data/migrations.go | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/core/data/migrations.go b/core/data/migrations.go index fed393e34..229ae6e52 100644 --- a/core/data/migrations.go +++ b/core/data/migrations.go @@ -15,15 +15,15 @@ func migrateToSchema5(db *sql.DB) { // Access tokens have been broken into its own table. // Authenticated bool added to the users table. - stmt, err := db.Prepare("ALTER TABLE users ADD authenticated_at timestamp DEFAULT null") - if err != nil { - log.Errorln("error running migration, you may experience issues: ", err) - } - defer stmt.Close() - _, err = stmt.Exec() - if err != nil { - log.Errorln("error running migration, you may experience issues: ", err) - } + // stmt, err := db.Prepare("ALTER TABLE users ADD authenticated_at timestamp DEFAULT null") + // if err != nil { + // log.Errorln("error running migration, you may experience issues: ", err) + // } + // defer stmt.Close() + // _, err = stmt.Exec() + // if err != nil { + // log.Errorln("error running migration, you may experience issues: ", err) + // } // Migrate the access tokens from the users table to the access tokens table. query := `SELECT id, access_token, created_at FROM users` @@ -66,7 +66,7 @@ func migrateToSchema5(db *sql.DB) { } // Remove old access token column from the users table. - stmt, err = db.Prepare("ALTER TABLE users DROP COLUMN access_token") + stmt, err := db.Prepare("ALTER TABLE users DROP COLUMN access_token") if err != nil { log.Fatal(err) } |