Rename everything to locker/lock

This commit is contained in:
2024-04-27 23:55:31 +02:00
parent df3068728a
commit a55cfe8205
17 changed files with 335 additions and 328 deletions

View File

@ -6,7 +6,7 @@ import (
"golang.org/x/crypto/bcrypt"
"stevenlr.com/timer/model"
"stevenlr.com/locker/model"
)
func initializeDatabaseV1(db *sql.DB) error {
@ -22,7 +22,7 @@ func initializeDatabaseV1(db *sql.DB) error {
}
_, err = tx.Exec(`
CREATE TABLE Timer (
CREATE TABLE Lock (
Id BLOB NOT NULL UNIQUE,
Name TEXT NOT NULL,
StartTime TEXT NOT NULL,
@ -74,7 +74,7 @@ func migrateDatabaseV2(db *sql.DB) error {
return err
}
_, err = tx.Exec("CREATE INDEX TimerTokenIndex ON Timer(Token)")
_, err = tx.Exec("CREATE INDEX LockTokenIndex ON Lock(Token)")
if err != nil {
return err
}