class AddIndexUserRoles extends edu.northwestern.bioinformatics.bering.Migration {
    void up() {
         dropTable('user_roles')
         createTable('user_roles') { t ->
            t.addColumn('csm_group_name', 'string', nullable: false)
            t.addColumn('user_id', 'integer', nullable:false)
        }
    }

    void down() {
         dropTable('user_roles')

         createTable('user_roles') { t ->
            t.includePrimaryKey = false
            t.addColumn('csm_group_name', 'string', nullable: false)
            t.addColumn('user_id', 'integer', nullable:false)
        }

    }
}

class AddIndexUserRoles extends edu.northwestern.bioinformatics.bering.Migration {
    void up() {
         dropTable('user_roles', primaryKey:false)
         createTable('user_roles') { t ->
            t.addColumn('csm_group_name', 'string', nullable: false)
            t.addColumn('user_id', 'integer', nullable:false)
        }
    }

    void down() {
         dropTable('user_roles')

         createTable('user_roles') { t ->
            t.includePrimaryKey = false
            t.addColumn('csm_group_name', 'string', nullable: false)
            t.addColumn('user_id', 'integer', nullable:false)
        }

    }
}

Fix dropping of table for oracle. Must specify no primary key.
Fix dropping of table for oracle.  Must specify no primary key.

git-svn-id: 4b387fe5ada7764508e2ca96c335714e4c1692c6@1354 0d517254-b314-0410-acde-c619094fa49f
