mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
8e1533a702
* feat(core): update connector db schema * feat(core): eliminate code redundancy for UTs * feat(core): delete insertConnector on conflict logic and fix UTs * feat(core): fix UI according to new connector type implementation * feat(core): removed unused getConnectorByTargetAndPlatform methods * feat(core): deprecate the function that updateConnector by giving target and platform * feat(core): keep SSOT on combination of connector and corresponding metadata * feat(core): rename index name in db
11 lines
371 B
SQL
11 lines
371 B
SQL
create table connectors (
|
|
id varchar(128) not null,
|
|
target varchar(64) not null,
|
|
platform varchar(64),
|
|
enabled boolean not null default FALSE,
|
|
config jsonb /* @use ArbitraryObject */ not null default '{}'::jsonb,
|
|
created_at timestamptz not null default(now()),
|
|
primary key (id)
|
|
);
|
|
|
|
create index connectors__target_platform on connectors (target, platform);
|