18 lines
445 B
PHP
18 lines
445 B
PHP
<?php
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
|
final class CreatePhinxTestTable extends AbstractMigration
|
|
{
|
|
public function change(): void
|
|
{
|
|
$this->table('phinx_test')
|
|
->addColumn('nome', 'string', ['limit' => 50, 'null' => false])
|
|
->addColumn('created_at', 'datetime', [
|
|
'default' => 'CURRENT_TIMESTAMP',
|
|
'null' => false,
|
|
])
|
|
->create();
|
|
}
|
|
}
|