2024-08-24 00:49:08 +02:00
|
|
|
create table oidc_clients
|
|
|
|
|
(
|
2024-08-24 01:12:33 +02:00
|
|
|
id TEXT not null primary key,
|
2024-08-24 00:49:08 +02:00
|
|
|
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)
|
2024-08-24 01:12:33 +02:00
|
|
|
select id,
|
|
|
|
|
created_at,
|
|
|
|
|
name,
|
|
|
|
|
secret,
|
|
|
|
|
json_extract(callback_urls, '$[0]'),
|
|
|
|
|
image_type,
|
|
|
|
|
created_by_id
|
2024-08-24 00:49:08 +02:00
|
|
|
from oidc_clients_dg_tmp;
|
|
|
|
|
|
|
|
|
|
drop table oidc_clients_dg_tmp;
|