storage: Add OfflineSession object to backend storage.
This commit is contained in:
@@ -153,6 +153,7 @@ var migrations = []migration{
|
||||
signing_key_pub bytea not null, -- JSON object
|
||||
next_rotation timestamptz not null
|
||||
);
|
||||
|
||||
`,
|
||||
},
|
||||
{
|
||||
@@ -165,4 +166,14 @@ var migrations = []migration{
|
||||
add column last_used timestamptz not null default '0001-01-01 00:00:00 UTC';
|
||||
`,
|
||||
},
|
||||
{
|
||||
stmt: `
|
||||
create table offline_session (
|
||||
user_id text not null,
|
||||
conn_id text not null,
|
||||
refresh bytea not null,
|
||||
PRIMARY KEY (user_id, conn_id)
|
||||
);
|
||||
`,
|
||||
},
|
||||
}
|
||||
|
Reference in New Issue
Block a user