FIX: id de migracion

This commit is contained in:
Juan Pablo Vial
2025-06-24 12:53:56 -04:00
parent 39198bbe7c
commit d2dff57531

View File

@ -10,7 +10,8 @@ class CreateTipoEstadoPago extends Phinx\Migration\AbstractMigration
$this->execute("ALTER DATABASE CHARACTER SET 'utf8mb4';"); $this->execute("ALTER DATABASE CHARACTER SET 'utf8mb4';");
$this->execute("ALTER DATABASE COLLATE='utf8mb4_general_ci';"); $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('descripcion', 'string', ['length' => 20, 'default' => null, 'null' => true])
->addColumn('active', 'integer', ['length' => 1, 'default' => 0]) ->addColumn('active', 'integer', ['length' => 1, 'default' => 0])
->create(); ->create();