28 lines
572 B
PHP
28 lines
572 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
|
final class ChangeExcelrowToVarchar extends AbstractMigration
|
|
{
|
|
public function up(): void
|
|
{
|
|
$this->table('datadb')
|
|
->changeColumn('excelrow', 'string', [
|
|
'limit' => 100,
|
|
'null' => true,
|
|
])
|
|
->update();
|
|
}
|
|
|
|
public function down(): void
|
|
{
|
|
$this->table('datadb')
|
|
->changeColumn('excelrow', 'integer', [
|
|
'null' => true,
|
|
])
|
|
->update();
|
|
}
|
|
}
|