From 0f398aaa9efc4d8f3c31d89c03d3e89df817d80d Mon Sep 17 00:00:00 2001 From: Adriele A Secundino Date: Fri, 6 Oct 2023 12:42:00 -0300 Subject: [PATCH] chore(migrations): new table iana_feedback --- .../1696606716287_create_table_iana_feedback/down.sql | 1 + .../1696606716287_create_table_iana_feedback/up.sql | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 migrations/migrations/default/1696606716287_create_table_iana_feedback/down.sql create mode 100644 migrations/migrations/default/1696606716287_create_table_iana_feedback/up.sql diff --git a/migrations/migrations/default/1696606716287_create_table_iana_feedback/down.sql b/migrations/migrations/default/1696606716287_create_table_iana_feedback/down.sql new file mode 100644 index 0000000..4965686 --- /dev/null +++ b/migrations/migrations/default/1696606716287_create_table_iana_feedback/down.sql @@ -0,0 +1 @@ +--DROP TABLE "mapa_do_acolhimento".iana_feedback; \ No newline at end of file diff --git a/migrations/migrations/default/1696606716287_create_table_iana_feedback/up.sql b/migrations/migrations/default/1696606716287_create_table_iana_feedback/up.sql new file mode 100644 index 0000000..a4ab71d --- /dev/null +++ b/migrations/migrations/default/1696606716287_create_table_iana_feedback/up.sql @@ -0,0 +1,9 @@ +CREATE TABLE "mapa_do_acolhimento"."iana_feedback" ( + "id" SERIAL NOT NULL, + "created_at" TIMESTAMP NOT NULL DEFAULT now(), + "user_id" BIGINT NOT NULL, + "question" TEXT NOT NULL, + "answer" TEXT, + + CONSTRAINT "iana_feedback_pkey" PRIMARY KEY ("id") +); \ No newline at end of file