@vrplatform/kysely 1.3.45-stage.6553 → 1.3.45-stage.6565
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -663,6 +663,28 @@ export async function up(db: Kysely<unknown>): Promise<void> {
|
|
|
663
663
|
end;
|
|
664
664
|
$$
|
|
665
665
|
`.execute(db);
|
|
666
|
+
|
|
667
|
+
await sql`
|
|
668
|
+
do $$
|
|
669
|
+
begin
|
|
670
|
+
if exists (select 1 from pg_roles where rolname = 'application') then
|
|
671
|
+
grant usage on schema core to application;
|
|
672
|
+
grant select, insert, update, delete
|
|
673
|
+
on core.operation,
|
|
674
|
+
core.operation_source,
|
|
675
|
+
core.operation_resource,
|
|
676
|
+
core.operation_projection_outbox,
|
|
677
|
+
core.csv_operation_result,
|
|
678
|
+
core.async_operation_result,
|
|
679
|
+
core.export_job
|
|
680
|
+
to application;
|
|
681
|
+
grant execute on function core.refresh_operation_state(uuid),
|
|
682
|
+
core.refresh_audit_action_source(uuid)
|
|
683
|
+
to application;
|
|
684
|
+
end if;
|
|
685
|
+
end
|
|
686
|
+
$$
|
|
687
|
+
`.execute(db);
|
|
666
688
|
}
|
|
667
689
|
|
|
668
690
|
export async function down(db: Kysely<unknown>): Promise<void> {
|