aboutsummaryrefslogtreecommitdiff
path: root/pkg/database/migrations.go
diff options
context:
space:
mode:
authorJulien Dessaux2021-04-12 12:44:42 +0200
committerJulien Dessaux2021-04-12 12:44:42 +0200
commitce5111b4eba9c93dc155f0e5a0f02351a518eb16 (patch)
tree32518f2cc42f9607f0a782abba7c56d52a5bb639 /pkg/database/migrations.go
parentImplemented the user login database function (diff)
downloadtrains-ce5111b4eba9c93dc155f0e5a0f02351a518eb16.tar.gz
trains-ce5111b4eba9c93dc155f0e5a0f02351a518eb16.tar.bz2
trains-ce5111b4eba9c93dc155f0e5a0f02351a518eb16.zip
Renamed password column to hash in database
Diffstat (limited to 'pkg/database/migrations.go')
-rw-r--r--pkg/database/migrations.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/database/migrations.go b/pkg/database/migrations.go
index 8d23ed2..8cc6420 100644
--- a/pkg/database/migrations.go
+++ b/pkg/database/migrations.go
@@ -13,7 +13,7 @@ var allMigrations = []func(tx *sql.Tx) error{
CREATE TABLE users (
id INTEGER PRIMARY KEY,
username TEXT NOT NULL UNIQUE,
- password TEXT,
+ hash TEXT,
email TEXT,
created_at DATE DEFAULT (datetime('now')),
last_login_at DATE DEFAULT NULL