Actualizacion de migraciones

This commit is contained in:
Juan Pablo Vial
2025-02-24 12:39:25 -03:00
parent 9d135e2c26
commit 3ebe256a66
8 changed files with 26 additions and 26 deletions

View File

@ -24,8 +24,8 @@ final class CreateReservation extends AbstractMigration
$this->execute("ALTER DATABASE COLLATE='utf8mb4_general_ci';");
$this->table('reservation')
->addColumn('buyer_rut', 'integer', ['signed' => false])
->addColumn('date', 'date')
->addColumn('buyer_rut', 'integer', ['signed' => false, 'null' => false])
->addColumn('date', 'date', ['null' => false])
->addForeignKey('buyer_rut', 'personas', 'rut', ['delete' => 'cascade', 'update' => 'cascade'])
->create();