Class

slick.migration.api

IrreversibleTableMigration

Related Doc: package api

Permalink

final class IrreversibleTableMigration[T <: driver.JdbcDriver.Table[_]] extends TableMigration[T]

The concrete TableMigration class used when irreversible operations are to be performed (such as dropping a table)

Linear Supertypes
TableMigration[T], Equals, AstHelpers, SqlMigration, Migration, AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. IrreversibleTableMigration
  2. TableMigration
  3. Equals
  4. AstHelpers
  5. SqlMigration
  6. Migration
  7. AnyRef
  8. Any
Implicitly
  1. by MigrationConcat
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Self = IrreversibleTableMigration[T]

    Permalink

    The concrete type of this TableMigration (ReversibleTableMigration or IrreversibleTableMigration).* Operations that are in of themselves reversible will return an instance of this type.

    The concrete type of this TableMigration (ReversibleTableMigration or IrreversibleTableMigration).* Operations that are in of themselves reversible will return an instance of this type.

    Definition Classes
    IrreversibleTableMigrationTableMigration

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def &(n: ReversibleMigration): ReversibleMigrationSeq

    Permalink

    [use case] Append a ReversibleMigration to form either a ReversibleMigrationSeq if the left side of & is also a ReversibleMigration; or else a plain MigrationSeq

    [use case]

    Append a ReversibleMigration to form either a ReversibleMigrationSeq if the left side of & is also a ReversibleMigration; or else a plain MigrationSeq

    n

    the ReversibleMigration to append

    Implicit information
    This member is added by an implicit conversion from IrreversibleTableMigration[T] to MigrationConcat[IrreversibleTableMigration[T]] performed by method MigrationConcat in slick.migration.api.Migration.
    Definition Classes
    MigrationConcat
    Full Signature

    def &[N <: Migration, O](n: N)(implicit ccm: CanConcatMigrations[IrreversibleTableMigration[T], N, O]): O

    Example:
    1. val combined = mig1 & mig2 & mig3
  4. def &(n: Migration): MigrationSeq

    Permalink

    [use case] Append another Migration to form a MigrationSeq

    [use case]

    Append another Migration to form a MigrationSeq

    n

    the Migration to append

    Implicit information
    This member is added by an implicit conversion from IrreversibleTableMigration[T] to MigrationConcat[IrreversibleTableMigration[T]] performed by method MigrationConcat in slick.migration.api.Migration.
    Definition Classes
    MigrationConcat
    Full Signature

    def &[N <: Migration, O](n: N)(implicit ccm: CanConcatMigrations[IrreversibleTableMigration[T], N, O]): O

    Example:
    1. val combined = mig1 & mig2 & mig3
  5. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from IrreversibleTableMigration[T] to any2stringadd[IrreversibleTableMigration[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  6. def ->[B](y: B): (IrreversibleTableMigration[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from IrreversibleTableMigration[T] to ArrowAssoc[IrreversibleTableMigration[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  7. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def actions: Seq[DBIO[_]]

    Permalink

    The SQL statements to run

    The SQL statements to run

    Definition Classes
    TableMigrationSqlMigration
  9. def addColumns(cols: (T) ⇒ Rep[_]*): Self

    Permalink

    Add columns to the table.

    Add columns to the table. (If the table is being created, these may be incorporated into the CREATE TABLE statement.)

    cols

    zero or more column-returning functions, which are passed the table object.

    Definition Classes
    TableMigration
    Example:
    1. tblMig.addColumns(_.col1, _.col2, _.column[Int]("fieldNotYetInTableDef"))
  10. def addForeignKeys(fkqs: (T) ⇒ ForeignKeyQuery[_ <: AbstractTable[_], _]*): Self

    Permalink

    Adds foreign key constraints.

    Adds foreign key constraints.

    fkqs

    zero or more ForeignKeyQuery-returning functions, which are passed the table object.

    Definition Classes
    TableMigration
    Example:
    1. tblMig.addForeignKeys(_.fkDef)
  11. def addIndexes(indexes: (T) ⇒ Index*): Self

    Permalink

    Adds indexes

    Adds indexes

    indexes

    zero or more Index-returning functions, which are passed the table object.

    Definition Classes
    TableMigration
    Example:
    1. tblMig.addIndexes(_.idxDef)
  12. def addPrimaryKeys(pks: (T) ⇒ PrimaryKey*): Self

    Permalink

    Adds primary key constraints.

    Adds primary key constraints.

    pks

    zero or more PrimaryKey-returning functions, which are passed the table object.

    Definition Classes
    TableMigration
    Example:
    1. tblMig.addPrimaryKeys(_.pkDef)
  13. def alterColumnDefaults(cols: (T) ⇒ Rep[_]*): IrreversibleTableMigration[T]

    Permalink

    Changes the default value of columns based on the column definitions in cols

    Changes the default value of columns based on the column definitions in cols

    cols

    zero or more column-returning functions, which are passed the table object.

    Definition Classes
    TableMigration
    Example:
    1. tblMig.alterColumnDefaults(_.col1, _.column[Int]("col2", O.Default("notTheDefaultInTableDef")))
  14. def alterColumnNulls(cols: (T) ⇒ Rep[_]*): IrreversibleTableMigration[T]

    Permalink

    Changes the nullability of columns based on the column definitions in cols

    Changes the nullability of columns based on the column definitions in cols

    cols

    zero or more column-returning functions, which are passed the table object.

    Definition Classes
    TableMigration
    Example:
    1. tblMig.alterColumnNulls(_.col1, _.column[Int]("col2", O.NotNull))
  15. def alterColumnTypes(cols: (T) ⇒ Rep[_]*): IrreversibleTableMigration[T]

    Permalink

    Changes the data type of columns based on the column definitions in cols

    Changes the data type of columns based on the column definitions in cols

    cols

    zero or more column-returning functions, which are passed the table object.

    Definition Classes
    TableMigration
    Example:
    1. tblMig.alterColumnTypes(_.col1, _.column[NotTheTypeInTableDef]("col2"))
  16. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  17. def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    TableMigration → Equals
  18. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. def columnInfo(driver: JdbcDriver, column: FieldSymbol): ColumnInfo

    Permalink

    driver

    a Slick driver, used to extract ColumnInfo#sqlType and ColumnInfo#notNull by calling typeInfoFor

    returns

    a ColumnInfo representing the relevant information in column

    Attributes
    protected
    Definition Classes
    AstHelpers
  20. def create: Self

    Permalink

    Create the table.

    Create the table. Note: drop + create is allowed.

    Definition Classes
    TableMigration
  21. val data: TableMigrationData

    Permalink
    Attributes
    protected[slick.migration.api]
    Definition Classes
    IrreversibleTableMigrationTableMigration
  22. def drop: IrreversibleTableMigration[T]

    Permalink

    Drop the table.

    Drop the table. Note: drop + create is allowed.

    Definition Classes
    TableMigration
  23. def dropColumns(cols: (T) ⇒ Rep[_]*): Self

    Permalink

    Drop columns.

    Drop columns.

    cols

    zero or more column-returning functions, which are passed the table object.

    Definition Classes
    TableMigration
    Example:
    1. tblMig.dropColumns(_.col1, _.col2, _.column[Int]("oldFieldNotInTableDef"))
  24. def dropForeignKeys(fkqs: (T) ⇒ ForeignKeyQuery[_ <: AbstractTable[_], _]*): Self

    Permalink

    Drops foreign key constraints.

    Drops foreign key constraints.

    fkqs

    zero or more ForeignKeyQuery-returning functions, which are passed the table object.

    Definition Classes
    TableMigration
    Example:
    1. tblMig.dropForeignKeys(_.fkDef)
  25. def dropIndexes(indexes: (T) ⇒ Index*): Self

    Permalink

    Drops indexes

    Drops indexes

    indexes

    zero or more Index-returning functions, which are passed the table object.

    Definition Classes
    TableMigration
    Example:
    1. tblMig.dropIndexes(_.idxDef)
  26. def dropPrimaryKeys(pks: (T) ⇒ PrimaryKey*): Self

    Permalink

    Drops primary key constraints.

    Drops primary key constraints.

    pks

    zero or more PrimaryKey-returning functions, which are passed the table object.

    Definition Classes
    TableMigration
    Example:
    1. tblMig.dropPrimaryKeys(_.pkDef)
  27. def ensuring(cond: (IrreversibleTableMigration[T]) ⇒ Boolean, msg: ⇒ Any): IrreversibleTableMigration[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from IrreversibleTableMigration[T] to Ensuring[IrreversibleTableMigration[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  28. def ensuring(cond: (IrreversibleTableMigration[T]) ⇒ Boolean): IrreversibleTableMigration[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from IrreversibleTableMigration[T] to Ensuring[IrreversibleTableMigration[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  29. def ensuring(cond: Boolean, msg: ⇒ Any): IrreversibleTableMigration[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from IrreversibleTableMigration[T] to Ensuring[IrreversibleTableMigration[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  30. def ensuring(cond: Boolean): IrreversibleTableMigration[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from IrreversibleTableMigration[T] to Ensuring[IrreversibleTableMigration[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  31. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. def equals(a: Any): Boolean

    Permalink
    Definition Classes
    TableMigration → Equals → AnyRef → Any
  33. def fieldSym(column: Rep[_]): FieldSymbol

    Permalink

    returns

    a FieldSymbol representing the column

    Attributes
    protected
    Definition Classes
    AstHelpers
  34. def fieldSym(node: Node): Option[FieldSymbol]

    Permalink

    returns

    if node represents a reference to a table's column, that is, it is a Select(_, f: FieldSymbol), then Some(f); otherwise None

    Attributes
    protected
    Definition Classes
    AstHelpers
  35. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  36. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from IrreversibleTableMigration[T] to StringFormat[IrreversibleTableMigration[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  37. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  38. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  39. def indexInfo(index: Index): IndexInfo

    Permalink

    returns

    an IndexInfo containing the relevant information from a Slick Index

    Attributes
    protected
    Definition Classes
    AstHelpers
  40. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  41. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  42. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  43. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  44. def rename(to: String): Self

    Permalink

    Rename the table

    Rename the table

    to

    the new name for the table

    Definition Classes
    TableMigration
  45. def renameColumn(col: (T) ⇒ Rep[_], to: String): Self

    Permalink

    Rename a column.

    Rename a column.

    col

    a column-returning function, which is passed the table object.

    Definition Classes
    TableMigration
    Example:
    1. tblMig.renameColumns(_.col1, "newName")
  46. def renameIndex(index: (T) ⇒ Index, to: String): Self

    Permalink

    Renames an index

    Renames an index

    index

    an Index-returning function, which is passed the table object.

    Definition Classes
    TableMigration
    Example:
    1. tblMig.renameIndex(_.idxDef, "newName")
  47. def run(db: DatabaseDef)(implicit ec: ExecutionContext): Future[Unit]

    Permalink

    Runs all the SQL statements in a single transaction

    Runs all the SQL statements in a single transaction

    Definition Classes
    SqlMigrationMigration
  48. def seq: DBIO[Unit]

    Permalink
    Definition Classes
    SqlMigration
  49. def statements: Seq[String]

    Permalink
    Definition Classes
    SqlMigrationMigration
  50. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  51. def tableInfo(table: TableNode): TableInfo

    Permalink

    table

    a Slick table object whose qualified name is needed

    returns

    a TableInfo representing the qualified name of table

    Attributes
    protected
    Definition Classes
    AstHelpers
  52. val tableInfo: TableInfo

    Permalink
  53. def toString(): String

    Permalink
    Definition Classes
    TableMigration → AnyRef → Any
  54. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. def withData(d: TableMigrationData): IrreversibleTableMigration[T]

    Permalink
    Attributes
    protected
    Definition Classes
    IrreversibleTableMigrationTableMigration
  58. def [B](y: B): (IrreversibleTableMigration[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from IrreversibleTableMigration[T] to ArrowAssoc[IrreversibleTableMigration[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from TableMigration[T]

Inherited from Equals

Inherited from AstHelpers

Inherited from SqlMigration

Inherited from Migration

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion MigrationConcat from IrreversibleTableMigration[T] to MigrationConcat[IrreversibleTableMigration[T]]

Inherited by implicit conversion any2stringadd from IrreversibleTableMigration[T] to any2stringadd[IrreversibleTableMigration[T]]

Inherited by implicit conversion StringFormat from IrreversibleTableMigration[T] to StringFormat[IrreversibleTableMigration[T]]

Inherited by implicit conversion Ensuring from IrreversibleTableMigration[T] to Ensuring[IrreversibleTableMigration[T]]

Inherited by implicit conversion ArrowAssoc from IrreversibleTableMigration[T] to ArrowAssoc[IrreversibleTableMigration[T]]

Schema Manipulation Operations

Ungrouped