mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-28 17:25:04 +03:00
27 lines
636 B
MySQL
27 lines
636 B
MySQL
|
|
create table oidc_clients_dg_tmp
|
||
|
|
(
|
||
|
|
id TEXT not null
|
||
|
|
primary key,
|
||
|
|
created_at DATETIME,
|
||
|
|
name TEXT,
|
||
|
|
secret TEXT,
|
||
|
|
callback_urls BLOB,
|
||
|
|
image_type TEXT,
|
||
|
|
created_by_id TEXT
|
||
|
|
references users
|
||
|
|
);
|
||
|
|
|
||
|
|
insert into oidc_clients_dg_tmp(id, created_at, name, secret, callback_urls, image_type, created_by_id)
|
||
|
|
select id,
|
||
|
|
created_at,
|
||
|
|
name,
|
||
|
|
secret,
|
||
|
|
CAST(json_group_array(json_quote(callback_url)) AS BLOB),
|
||
|
|
image_type,
|
||
|
|
created_by_id
|
||
|
|
from oidc_clients;
|
||
|
|
|
||
|
|
drop table oidc_clients;
|
||
|
|
|
||
|
|
alter table oidc_clients_dg_tmp
|
||
|
|
rename to oidc_clients;
|