Refactor store: use migrations and split logic
This commit is contained in:
parent
376edd7267
commit
922710a2cd
6 changed files with 250 additions and 212 deletions
8
internal/store/migrations/2.sql
Normal file
8
internal/store/migrations/2.sql
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
create table session (
|
||||
token text primary key,
|
||||
user_name text,
|
||||
created text,
|
||||
lastAccess text
|
||||
);
|
||||
|
||||
PRAGMA user_version = 2;
|
||||
Loading…
Add table
Add a link
Reference in a new issue