forge->addField([ 'id' => [ 'type' => 'INT', 'constraint' => 11, 'unsigned' => TRUE, 'auto_increment' => TRUE, ], 'name' => [ 'type' => 'VARCHAR', 'constraint' => 100, ], 'definition' => [ 'type' => 'TEXT', ], ]); $this->forge->addKey('id', TRUE); $this->forge->createTable($config->dbTablePerms, TRUE); } //-------------------------------------------------------------------- public function down() { $config = new AauthConfig(); $this->forge->dropTable($config->dbTablePerms, true); } }