diff options
author | Julien Dessaux | 2021-04-12 12:44:42 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-04-12 12:44:42 +0200 |
commit | ce5111b4eba9c93dc155f0e5a0f02351a518eb16 (patch) | |
tree | 32518f2cc42f9607f0a782abba7c56d52a5bb639 /pkg/database/migrations.go | |
parent | Implemented the user login database function (diff) | |
download | trains-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.go | 2 |
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 |