@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> {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.3.45-stage.6553",
6
+ "version": "1.3.45-stage.6565",
7
7
  "description": "",
8
8
  "main": "build/main/index.js",
9
9
  "module": "build/module/index.js",