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,9 +24,9 @@ final class CreateReservationStates extends AbstractMigration
$this->execute("ALTER DATABASE COLLATE='utf8mb4_general_ci';");
$this->table('reservation_states')
->addColumn('reservation_id', 'integer', ['signed' => false])
->addColumn('date', 'date')
->addColumn('type', 'integer')
->addColumn('reservation_id', 'integer', ['signed' => false, 'null' => false])
->addColumn('date', 'date', ['null' => false])
->addColumn('type', 'integer', ['length' => 3, 'null' => false, 'default' => 0])
->addForeignKey('reservation_id', 'reservation', 'id', ['delete' => 'cascade', 'update' => 'cascade'])
->create();