Sindbad~EG File Manager
<?php
declare(strict_types=1);
use Migrations\AbstractMigration;
class CreateLegislatures extends AbstractMigration
{
/**
* Change Method.
*
* More information on this method is available here:
* https://book.cakephp.org/phinx/0/en/migrations.html#the-change-method
* @return void
*/
public function change(): void
{
$table = $this->table('legislatures');
$table->addColumn('name', 'string', [
'default' => null,
'limit' => 255,
'null' => false,
]);
$table->addColumn('created', 'datetime', [
'default' => null,
'null' => false,
]);
$table->create();
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists