first commit
This commit is contained in:
commit
c9fb67e751
423 files changed
+53287
No files matched your search
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- The `variaveis` column on the `modelos_documentos` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "documentos" ADD COLUMN "protocolo" VARCHAR(20);
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "modelos_documentos" ADD COLUMN "assinatura" BOOLEAN NOT NULL DEFAULT true,
|
||||
ADD COLUMN "cabecalho" BOOLEAN NOT NULL DEFAULT true,
|
||||
ADD COLUMN "rodape" BOOLEAN NOT NULL DEFAULT true,
|
||||
DROP COLUMN "variaveis",
|
||||
ADD COLUMN "variaveis" JSONB;
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "configuracoes_documentos" (
|
||||
"id" UUID NOT NULL DEFAULT gen_random_uuid(),
|
||||
"cabecalhoHtml" TEXT NOT NULL,
|
||||
"rodapeHtml" TEXT NOT NULL,
|
||||
"assinaturaHtml" TEXT NOT NULL,
|
||||
"logoUrl" TEXT,
|
||||
"criadoEm" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"atualizadoEm" TIMESTAMP(3) NOT NULL,
|
||||
|
||||
CONSTRAINT "configuracoes_documentos_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "documentos_protocolo_idx" ON "documentos"("protocolo");
|
||||
Reference in new issue
Block a user