Debian Codegraph @

extensions/OATHAuth/sql/sqlite/patch-add_generic_fields.sql

raw
1 CREATE TABLE /*_*/oathauth_users_tmp (
2 -- User ID
3 id int not null primary key,
4
5 -- Secret key
6 secret text NULL DEFAULT NULL,
7
8 -- Scratch tokens
9 scratch_tokens blob NULL DEFAULT NULL,
10
11 -- Module user has selected
12 module text not null,
13
14 -- Data
15 data blob null
16 );
17
18 INSERT INTO /*_*/oathauth_users_tmp (id, secret, scratch_tokens, module, data)
19 SELECT id, secret, scratch_tokens, '', null FROM /*_*/oathauth_users;
20
21 DROP TABLE /*_*/oathauth_users;
22
23 ALTER TABLE /*_*/oathauth_users_tmp RENAME TO /*_*/oathauth_users;