From b22ec571dded0f9aa2579aac019a3afe0e587f6c Mon Sep 17 00:00:00 2001 From: Matheus Coitinho Date: Mon, 25 Aug 2025 13:33:22 -0300 Subject: [PATCH] =?UTF-8?q?adiciona=20coluna=20'descricao'=20=C3=A0=20tabe?= =?UTF-8?q?la=20'tombos'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migration/20250825162350_add_descricao_tombo.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/database/migration/20250825162350_add_descricao_tombo.ts diff --git a/src/database/migration/20250825162350_add_descricao_tombo.ts b/src/database/migration/20250825162350_add_descricao_tombo.ts new file mode 100644 index 00000000..a0ee75b3 --- /dev/null +++ b/src/database/migration/20250825162350_add_descricao_tombo.ts @@ -0,0 +1,7 @@ +import { Knex } from 'knex' + +export async function run(knex: Knex): Promise { + await knex.schema.table('tombos', (table) => { + table.text('descricao').nullable() + }) +}