3 use Phinx\Migration\AbstractMigration;
27 if ($this->hasTable(
"entity_subtypes")) {
31 $table = $this->table(
"entity_subtypes", [
34 'collation' =>
"utf8_general_ci",
37 $table->addColumn(
'type',
'enum', [
48 $table->addColumn(
'subtype',
'string', [
53 $table->addColumn(
'class',
'string', [
70 'subtype' =>
'plugin',
71 'class' =>
'ElggPlugin',
76 'class' =>
'ElggFile',
80 'subtype' =>
'widget',
81 'class' =>
'ElggWidget',
85 'subtype' =>
'comment',
86 'class' =>
'ElggComment',
90 'subtype' =>
'elgg_upgrade',
91 'class' =>
'ElggUpgrade',
95 'subtype' =>
'admin_notice',
change()
CREATE TABLE prefix_entity_subtypes ( id int(11) NOT NULL AUTO_INCREMENT, type enum('object',...