forge->addField([ 'platform_id' => ['type' => 'INT', 'unsigned' => true, 'auto_increment' => true], 'platform_name'=> ['type' => 'VARCHAR', 'constraint' => 255], 'created_at' => ['type' => 'DATETIME', 'null' => true], 'updated_at' => ['type' => 'DATETIME', 'null' => true], 'deleted_at' => ['type' => 'DATETIME', 'null' => true], ]); $this->forge->addKey('platform_id', true); $this->forge->createTable('platform'); } public function down() { $this->forge->dropTable('platform'); } }