diff --git a/src/common/databases/migrations/20240910081547_name/migration.sql b/src/common/databases/migrations/20240910081547_name/migration.sql new file mode 100644 index 00000000..18e8d895 --- /dev/null +++ b/src/common/databases/migrations/20240910081547_name/migration.sql @@ -0,0 +1,9 @@ +/* + Warnings: + + - You are about to drop the column `document_name` on the `documents_notary` table. All the data in the column will be lost. + +*/ +-- AlterTable +ALTER TABLE "documents_notary" DROP COLUMN "document_name", +ADD COLUMN "document" VARCHAR(255) NOT NULL DEFAULT ''; diff --git a/src/common/databases/schema.prisma b/src/common/databases/schema.prisma index 52aa353e..5007857f 100644 --- a/src/common/databases/schema.prisma +++ b/src/common/databases/schema.prisma @@ -234,7 +234,7 @@ model DocumentsNotary { files FilesNotary[] customer Customers @relation(fields: [customer_uid], references: [uid], onDelete: Cascade) customer_uid String @db.VarChar(255) - document_name String @db.VarChar(255) @default("") + document String @db.VarChar(255) @default("") @@map("documents_notary") }