db->table_exists('accounts')&&!$this->db->field_exists('is_hidden','accounts')){ $this->db->query('ALTER TABLE accounts ADD is_hidden TINYINT(1) NOT NULL DEFAULT 0 AFTER is_active'); } } public function down() { // Metadata tidak dihapus agar konfigurasi visibilitas tidak hilang. } }