From 883043cde379ce594743f3a6ac598d370813d15a Mon Sep 17 00:00:00 2001 From: Allan Carr Date: Tue, 6 Aug 2024 17:39:55 -0700 Subject: [PATCH] IO-2866 Add OP20 to masterdata Signed-off-by: Allan Carr --- .../1722990947416_add_op20_to_masterdata/down.sql | 9 +++++++++ .../1722990947416_add_op20_to_masterdata/up.sql | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 hasura/migrations/1722990947416_add_op20_to_masterdata/down.sql create mode 100644 hasura/migrations/1722990947416_add_op20_to_masterdata/up.sql diff --git a/hasura/migrations/1722990947416_add_op20_to_masterdata/down.sql b/hasura/migrations/1722990947416_add_op20_to_masterdata/down.sql new file mode 100644 index 000000000..c9f184e41 --- /dev/null +++ b/hasura/migrations/1722990947416_add_op20_to_masterdata/down.sql @@ -0,0 +1,9 @@ +-- Could not auto-generate a down migration. +-- Please write an appropriate down migration for the SQL below: +-- UPDATE "public"."masterdata" +-- SET value = jsonb_set( +-- value::jsonb, +-- '{OP20}', +-- '{"desc": "REMOVE AND REINSTALL", "opcode": "OP20", "partcode": "PAE"}'::jsonb, +-- true +-- ); diff --git a/hasura/migrations/1722990947416_add_op20_to_masterdata/up.sql b/hasura/migrations/1722990947416_add_op20_to_masterdata/up.sql new file mode 100644 index 000000000..583e21e05 --- /dev/null +++ b/hasura/migrations/1722990947416_add_op20_to_masterdata/up.sql @@ -0,0 +1,7 @@ +UPDATE "public"."masterdata" +SET value = jsonb_set( + value::jsonb, + '{OP20}', + '{"desc": "REMOVE AND REINSTALL", "opcode": "OP20", "partcode": "PAE"}'::jsonb, + true +);