mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-10 23:33:00 +03:00
23 lines
545 B
SQL
23 lines
545 B
SQL
create table oidc_clients
|
|
(
|
|
id TEXT not null primary key,
|
|
created_at DATETIME,
|
|
name TEXT,
|
|
secret TEXT,
|
|
callback_url TEXT,
|
|
image_type TEXT,
|
|
created_by_id TEXT
|
|
references users
|
|
);
|
|
|
|
insert into oidc_clients(id, created_at, name, secret, callback_url, image_type, created_by_id)
|
|
select id,
|
|
created_at,
|
|
name,
|
|
secret,
|
|
json_extract(callback_urls, '$[0]'),
|
|
image_type,
|
|
created_by_id
|
|
from oidc_clients_dg_tmp;
|
|
|
|
drop table oidc_clients_dg_tmp; |