From d2dff57531adbe8d91fef4a9c6a161230235b928 Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Tue, 24 Jun 2025 12:53:56 -0400 Subject: [PATCH] FIX: id de migracion --- .../migrations/20141101080122_create_tipo_estado_pago.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/resources/database/migrations/20141101080122_create_tipo_estado_pago.php b/app/resources/database/migrations/20141101080122_create_tipo_estado_pago.php index d7a65fa..2666b23 100644 --- a/app/resources/database/migrations/20141101080122_create_tipo_estado_pago.php +++ b/app/resources/database/migrations/20141101080122_create_tipo_estado_pago.php @@ -10,7 +10,8 @@ class CreateTipoEstadoPago extends Phinx\Migration\AbstractMigration $this->execute("ALTER DATABASE CHARACTER SET 'utf8mb4';"); $this->execute("ALTER DATABASE COLLATE='utf8mb4_general_ci';"); - $this->table('tipo_estado_pago') + $this->table('tipo_estado_pago', ['id' => false, 'primary_key' => 'id']) + ->addColumn('id', 'integer', ['signed' => true]) ->addColumn('descripcion', 'string', ['length' => 20, 'default' => null, 'null' => true]) ->addColumn('active', 'integer', ['length' => 1, 'default' => 0]) ->create();