mardi 21 avril 2015

Conditional drop of tables in slick

Any idea how to do a conditional drop in Slick 3.0, to prevent An exception or error caused a run to abort: Unknown table 'MY_TABLE' if for some reason it doesn't exist?

def clear = {
    val operations = DBIO.seq(
      // other table definitions

Aucun commentaire:

Enregistrer un commentaire