3 use Phinx\Migration\AbstractMigration;
4 use Phinx\Db\Adapter\MysqlAdapter;
17 if ($this->hasTable(
"objects_entity")) {
21 $table = $this->table(
"objects_entity", [
23 'primary_key' => [
"guid"],
25 'encoding' =>
"utf8mb4",
26 'collation' =>
"utf8mb4_general_ci",
29 $table->addColumn(
'guid',
'integer', [
31 'limit' => MysqlAdapter::INT_BIG,
35 $table->addColumn(
'title',
'text', [
39 $table->addColumn(
'description',
'text', [
41 'limit' => MysqlAdapter::TEXT_LONG,
change()
CREATE TABLE prefix_objects_entity ( guid bigint(20) unsigned NOT NULL, title text NOT NULL,...