1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Store tokens in database instead of cookie

This commit is contained in:
Frédéric Guillot 2017-12-01 21:51:22 -08:00
parent 7cecdbb856
commit 1a90c059e7
11 changed files with 160 additions and 58 deletions

View file

@ -1,5 +1,5 @@
// Code generated by go generate; DO NOT EDIT.
// 2017-11-27 21:07:53.208711992 -0800 PST m=+0.002898220
// 2017-12-01 21:46:13.639273113 -0800 PST m=+0.002204900
package sql
@ -112,9 +112,16 @@ create table feed_icons (
alter table users add column extra hstore;
create index users_extra_idx on users using gin(extra);
`,
"schema_version_3": `create table tokens (
id text not null,
value text not null,
created_at timestamp with time zone not null default now(),
primary key(id, value)
);`,
}
var SqlMapChecksums = map[string]string{
"schema_version_1": "cb85ca7dd97a6e1348e00b65ea004253a7165bed9a772746613276e47ef93213",
"schema_version_2": "e8e9ff32478df04fcddad10a34cba2e8bb1e67e7977b5bd6cdc4c31ec94282b4",
"schema_version_3": "a54745dbc1c51c000f74d4e5068f1e2f43e83309f023415b1749a47d5c1e0f12",
}