From 432b6963058885d2df7148e967877debd3bc487c Mon Sep 17 00:00:00 2001 From: jgallego Date: Fri, 3 May 2024 14:57:09 +0200 Subject: [PATCH] feat: create isInformal --- db/versions/11026-brownAralia/00-entryAlter.sql | 1 + db/versions/11026-brownAralia/01-entryUpdate.sql | 3 +++ db/versions/11026-brownAralia/02-entryInternal.sql | 3 +++ 3 files changed, 7 insertions(+) create mode 100644 db/versions/11026-brownAralia/00-entryAlter.sql create mode 100644 db/versions/11026-brownAralia/01-entryUpdate.sql create mode 100644 db/versions/11026-brownAralia/02-entryInternal.sql diff --git a/db/versions/11026-brownAralia/00-entryAlter.sql b/db/versions/11026-brownAralia/00-entryAlter.sql new file mode 100644 index 000000000..26b3f727e --- /dev/null +++ b/db/versions/11026-brownAralia/00-entryAlter.sql @@ -0,0 +1 @@ +ALTER TABLE vn.entryType ADD isInformal TINYINT DEFAULT 0 NOT NULL; diff --git a/db/versions/11026-brownAralia/01-entryUpdate.sql b/db/versions/11026-brownAralia/01-entryUpdate.sql new file mode 100644 index 000000000..5454db45f --- /dev/null +++ b/db/versions/11026-brownAralia/01-entryUpdate.sql @@ -0,0 +1,3 @@ +UPDATE vn.entryType + SET description='Interna', code='internal' + WHERE code='supplies' diff --git a/db/versions/11026-brownAralia/02-entryInternal.sql b/db/versions/11026-brownAralia/02-entryInternal.sql new file mode 100644 index 000000000..77f0133e5 --- /dev/null +++ b/db/versions/11026-brownAralia/02-entryInternal.sql @@ -0,0 +1,3 @@ +UPDATE vn.entryType + SET isInformal = TRUE + WHERE code IN ('inventory', 'life', 'regularization', 'internal') -- 2.40.1