Atomicity

oxygen.sql.migration.MigrationConfig.Atomicity
enum Atomicity

None : (Highly not recommended) Will run your migration outside a transaction. : If there ends up being an error within a singular migration, your DB will be in a very weird state. PerMigration : Will run each migration in its own transaction. : This means that if you need to run multiple migrations (A and B), and A succeeds, but B fails, your DB will be in the state between A and B. AllOrNothing : Will run the entire migration in its own transaction. : This means that if you need to run multiple migrations (A and B), and A succeeds, but B fails, your DB will roll back to its state before A.

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case AllOrNothing extends Atomicity
case None extends Atomicity
case PerMigration extends Atomicity