Skip to content

Commit

Permalink
Merge pull request #1166 from folio-org/RMB-1004-recreate-rmb_interna…
Browse files Browse the repository at this point in the history
…l-row

RMB-1004: Recreate rmb_internal row
  • Loading branch information
julianladisch authored Aug 27, 2024
2 parents 24e2b7b + c31eecc commit 71be7c8
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ CREATE TABLE IF NOT EXISTS ${myuniversity}_${mymodule}.rmb_internal (
jsonb JSONB NOT NULL
);

insert into ${myuniversity}_${mymodule}.rmb_internal (jsonb) values ('{"rmbVersion": "${rmbVersion}", "moduleVersion": "${newVersion}"}'::jsonb);

</#if>

<#-- Insert row if table is empty -->
INSERT INTO ${myuniversity}_${mymodule}.rmb_internal (jsonb)
SELECT '{"rmbVersion": "${rmbVersion}", "moduleVersion": "${version}"}'::jsonb
WHERE NOT EXISTS (SELECT * FROM ${myuniversity}_${mymodule}.rmb_internal);

CREATE TABLE IF NOT EXISTS ${myuniversity}_${mymodule}.rmb_job (
id UUID PRIMARY KEY,
jsonb JSONB NOT NULL
Expand Down

0 comments on commit 71be7c8

Please sign in to comment.