Daniel Friesel
6ff397c9b3
add database table/column comments
2019-04-29 10:25:17 +02:00
Daniel Friesel
fd6d12d355
Handle inconsistent data when calculating monthly/yearly stats
...
Closes #11
2019-04-28 22:33:09 +02:00
Daniel Friesel
e500c2e537
work: Update route and messages
2019-04-26 22:12:34 +02:00
Daniel Friesel
fd314e327d
maintenance, munin: Use journeys, not user_actions
2019-04-24 08:45:56 +02:00
Daniel Friesel
ffaa0c44a7
Automatic checkout \o/
2019-04-23 21:30:31 +02:00
Daniel Friesel
e168d9cd39
Use one row per journey instead of split checkin/checkout entries
...
Whether a user is in transit or not is now determined by an entry in the
in_transit table instead of a dangling checkin.
All completed journeys are stored in the "journeys" table.
This does most of the work needed for automatic checkout. However, note that
the corresponding worker process is not implemented yet.
2019-04-23 18:08:07 +02:00
Daniel Friesel
812be4f0cb
Finish transition from DBI to Mojo::Pg
2019-04-22 13:42:41 +02:00
Daniel Friesel
c65232904f
Use Mojo::Pg for migrations
2019-04-22 12:30:05 +02:00
Daniel Friesel
b860b46e52
database migrate: Use truncate
2019-04-21 17:45:25 +02:00
Daniel Friesel
78b2d995ef
Ignore stations without coordinates in distance calculation
...
Reported by @marudor
2019-04-21 15:46:19 +02:00
Daniel Friesel
eff979081c
Add a registration test
2019-04-18 14:51:45 -04:00
Daniel Friesel
065c844fde
Refactor munin command to use Mojo::Pg
2019-04-17 13:36:01 -04:00
Daniel Friesel
ecedc6a4f2
Add a dumpconfig command, mostly useful to debug Docker setups
2019-04-17 07:11:04 -04:00
Daniel Friesel
c19f239d1d
Do not print error when encountering an empty database
2019-04-14 08:44:27 +02:00
Markus Witt
ed397093c2
database setup: merge setup and migration code paths
2019-04-13 23:36:58 +02:00
Daniel Friesel
4d413d06a3
"database" sub-command: Provide an exit status
2019-04-13 17:17:44 +02:00
Markus Witt
4bf62cf2a8
fix dbschema: add type for edited
2019-04-13 16:56:15 +02:00
Daniel Friesel
61b1ef398e
maintenance: Fix stats table name
2019-04-13 11:52:26 +02:00
Daniel Friesel
bba6721754
Allow journey editing, keep track of edited journey attributes
...
Provides a workaround for #2
2019-04-09 18:37:21 +02:00
Daniel Friesel
d0b6b7e052
Cache journey stats
2019-04-07 16:55:35 +02:00
Daniel Friesel
8096c33c00
Add a note about updating travelynx
2019-04-07 14:18:56 +02:00
Daniel Friesel
c4a60375f4
Add a database command for database setup and migrations
2019-04-06 21:08:36 +02:00
Daniel Friesel
76f6922e82
maintenance: delete accounts which requested deletion
2019-03-31 17:58:05 +02:00
Daniel Friesel
00efb2e320
Move maintenance script to Mojolicious command
2019-03-25 19:54:49 +01:00
Daniel Friesel
edf4642933
Migrate munin command
2019-03-25 18:17:54 +01:00
Daniel Friesel
e53ab5f781
move munin-stats to a mojolicious command
2019-03-22 21:18:03 +01:00