Actualizacion de migraciones
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user