table('roles')->hasColumn('perm_group_admin'); if (!$exists) { $this->table('roles') ->addColumn('perm_group_admin', 'boolean', [ 'default' => 0, 'null' => false, ]) ->addIndex('perm_group_admin') ->update(); } } }