aboutsummaryrefslogtreecommitdiff
path: root/pkg/database
diff options
context:
space:
mode:
authorJulien Dessaux2021-09-08 15:07:09 +0200
committerJulien Dessaux2021-09-08 15:08:16 +0200
commit33926a10a8729982b0e2353810c63f25d888b348 (patch)
tree690c6ec4bd82c12129c7d4ce53db9b5ba20c4127 /pkg/database
parentAdded logic to fetch train stops data if missing when starting the webserver (diff)
downloadtrains-33926a10a8729982b0e2353810c63f25d888b348.tar.gz
trains-33926a10a8729982b0e2353810c63f25d888b348.tar.bz2
trains-33926a10a8729982b0e2353810c63f25d888b348.zip
Removed useless user model code
Diffstat (limited to 'pkg/database')
-rw-r--r--pkg/database/migrations.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/database/migrations.go b/pkg/database/migrations.go
index 7c74bcf..ada638a 100644
--- a/pkg/database/migrations.go
+++ b/pkg/database/migrations.go
@@ -15,8 +15,7 @@ var allMigrations = []func(tx *sql.Tx) error{
username TEXT NOT NULL UNIQUE,
hash TEXT,
email TEXT,
- created_at DATE DEFAULT (datetime('now')),
- last_login_at DATE DEFAULT NULL
+ created_at DATE DEFAULT (datetime('now'))
);
CREATE TABLE sessions (
token TEXT PRIMARY KEY,