3 use Phinx\Migration\AbstractMigration;
4 use Phinx\Db\Adapter\MysqlAdapter;
16 if ($this->hasTable(
"config")) {
20 $table = $this->table(
"config", [
22 'primary_key' => [
"name"],
24 'encoding' =>
"utf8mb4",
25 'collation' =>
"utf8mb4_general_ci",
28 $table->addColumn(
'name',
'string', [
30 'limit' => MysqlAdapter::TEXT_SMALL,
32 'collation' =>
"utf8_general_ci",
35 $table->addColumn(
'value',
'text', [
37 'limit' => MysqlAdapter::TEXT_LONG,
change()
CREATE TABLE prefix_config ( name varchar(255) CHARACTER SET utf8 NOT NULL, value LONGTEXT NOT NULL,...