[ "type" => "INT", "unsigned" => true, "autoincrement" => true ], "name" => [ "type" => "VARCHAR", "constraint" => '45', "unique" => true, ], ]; public function up() { $this->forge->addField($this->COLUMNS); $this->forge->createTable("chat_departments"); $this->forge->addPrimaryKey('id'); } public function down() { // $this->forge->dropTable("chat_departments"); } }