case class TableMigration[T <: jdbc.JdbcProfile.Table[_], A <: Action](tableInfo: TableInfo, actions: List[A])(table: T)(implicit dialect: Dialect[_], withActions: WithActions[A]) extends SqlMigration with AstHelpers with Product with Serializable

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

Instance Constructors

  1. new TableMigration(tableInfo: TableInfo, actions: List[A])(table: T)(implicit dialect: Dialect[_], withActions: WithActions[A])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def &[N <: Migration, O](n: N)(implicit ccm: CanConcatMigrations[TableMigration[T, A], N, O]): O

    Append another Migration to form a MigrationSeq If both sides are ReversibleMigrations then a ReversibleMigrationSeq is returned.

    Append another Migration to form a MigrationSeq If both sides are ReversibleMigrations then a ReversibleMigrationSeq is returned.

    n

    the Migration to append

    Implicit
    This member is added by an implicit conversion from TableMigration[T, A] toMigrationConcat[TableMigration[T, A]] performed by method MigrationConcat in slick.migration.api.Migration.
    Definition Classes
    MigrationConcat
    Example:
    1. val combined = mig1 & mig2 & mig3
  4. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from TableMigration[T, A] toany2stringadd[TableMigration[T, A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  5. def ->[B](y: B): (TableMigration[T, A], B)
    Implicit
    This member is added by an implicit conversion from TableMigration[T, A] toArrowAssoc[TableMigration[T, A]] performed by method ArrowAssoc in scala.Predef.This conversion will take place only if A is Reversible (A =:= Reversible).
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. val actions: List[A]
  8. def addColumnAndSet[C](col: (T) => Rep[C], value: C)(implicit jdbcType: JdbcType[C]): TableMigration[T, A]

    Adds a column and populates it without a column default in the future.

  9. def addColumnAndSetRaw(col: (T) => Rep[_], rawSqlExpr: String): TableMigration[T, A]

    Note

    rawSqlExpr is used as raw SQL, with the security implications thereof

  10. def addColumns(cols: (T) => Rep[_]*): TableMigration[T, A]

    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.

    Example:
    1. tblMig.addColumns(_.col1, _.col2, _.column[Int]("fieldNotYetInTableDef"))
  11. def addForeignKeys(fkqs: (T) => ForeignKeyQuery[_ <: AbstractTable[_], _]*): TableMigration[T, A]

    Adds foreign key constraints.

    Adds foreign key constraints.

    fkqs

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

    Example:
    1. tblMig.addForeignKeys(_.fkDef)
  12. def addIndexes(indexes: (T) => Index*): TableMigration[T, A]

    Adds indexes

    Adds indexes

    indexes

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

    Example:
    1. tblMig.addIndexes(_.idxDef)
  13. def addPrimaryKeys(pks: (T) => PrimaryKey*): TableMigration[T, A]

    Adds primary key constraints.

    Adds primary key constraints.

    pks

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

    Example:
    1. tblMig.addPrimaryKeys(_.pkDef)
  14. def alterColumnDefaults(cols: (T) => Rep[_]*): TableMigration[T, Action]

    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.

    Example:
    1. tblMig.alterColumnDefaults(_.col1, _.column[Int]("col2", O.Default("notTheDefaultInTableDef")))
  15. def alterColumnNulls(cols: (T) => Rep[_]*): TableMigration[T, Action]

    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.

    Example:
    1. tblMig.alterColumnNulls(_.col1, _.column[Int]("col2", O.NotNull))
  16. def alterColumnTypes(cols: (T) => Rep[_]*): TableMigration[T, Action]

    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.

    Example:
    1. tblMig.alterColumnTypes(_.col1, _.column[NotTheTypeInTableDef]("col2"))
  17. def apply(): SimpleJdbcAction[Unit]
    Definition Classes
    SqlMigrationMigration
  18. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  19. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  20. def colInfo[T <: jdbc.JdbcProfile.Table[_]](table: T)(f: (T) => Rep[_]): ColumnInfo
    Attributes
    protected
    Definition Classes
    AstHelpers
  21. def columnInfo: ((T) => Rep[_]) => ColumnInfo
    Attributes
    protected
  22. def columnInfo(driver: JdbcProfile, column: FieldSymbol): ColumnInfo

    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
  23. def create: TableMigration[T, A]

    Create the table.

  24. def drop: TableMigration[T, Action]

    Drop the table.

  25. def dropColumns(name: String, names: String*): TableMigration[T, Action]
  26. def dropColumns(cols: (T) => Rep[_]*): TableMigration[T, A]

    Drop columns.

    Drop columns.

    cols

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

    Example:
    1. tblMig.dropColumns(_.col1, _.col2, _.column[Int]("oldFieldNotInTableDef"))
  27. def dropForeignKeys(fkqs: (T) => ForeignKeyQuery[_ <: AbstractTable[_], _]*): TableMigration[T, A]

    Drops foreign key constraints.

    Drops foreign key constraints.

    fkqs

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

    Example:
    1. tblMig.dropForeignKeys(_.fkDef)
  28. def dropIndexes(indexes: (T) => Index*): TableMigration[T, A]

    Drops indexes

    Drops indexes

    indexes

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

    Example:
    1. tblMig.dropIndexes(_.idxDef)
  29. def dropPrimaryKeys(pks: (T) => PrimaryKey*): TableMigration[T, A]

    Drops primary key constraints.

    Drops primary key constraints.

    pks

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

    Example:
    1. tblMig.dropPrimaryKeys(_.pkDef)
  30. def ensuring(cond: (TableMigration[T, A]) => Boolean, msg: => Any): TableMigration[T, A]
    Implicit
    This member is added by an implicit conversion from TableMigration[T, A] toEnsuring[TableMigration[T, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  31. def ensuring(cond: (TableMigration[T, A]) => Boolean): TableMigration[T, A]
    Implicit
    This member is added by an implicit conversion from TableMigration[T, A] toEnsuring[TableMigration[T, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  32. def ensuring(cond: Boolean, msg: => Any): TableMigration[T, A]
    Implicit
    This member is added by an implicit conversion from TableMigration[T, A] toEnsuring[TableMigration[T, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  33. def ensuring(cond: Boolean): TableMigration[T, A]
    Implicit
    This member is added by an implicit conversion from TableMigration[T, A] toEnsuring[TableMigration[T, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  34. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. def fieldSym(node: Node): Option[FieldSymbol]

    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
  36. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  37. def indexInfo(index: Index): IndexInfo

    returns

    an IndexInfo containing the relevant information from a Slick Index

    Attributes
    protected
    Definition Classes
    AstHelpers
  38. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  42. def productElementNames: Iterator[String]
    Definition Classes
    Product
  43. def rename(to: String): TableMigration[T, A]

    Rename the table

    Rename the table

    to

    the new name for the table

  44. def renameColumn(col: (T) => Rep[_], to: String): TableMigration[T, A]

    Rename a column.

    Rename a column.

    col

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

    Example:
    1. tblMig.renameColumn(_.col1, "newName")
  45. def renameColumnFrom(from: String, col: (T) => Rep[_]): TableMigration[T, A]
  46. def renameFrom(from: String): TableMigration[T, A]
  47. def renameIndex(index: (T) => Index, to: String): TableMigration[T, A]

    Renames an index

    Renames an index

    index

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

    Example:
    1. tblMig.renameIndex(_.idxDef, "newName")
  48. def renameIndexFrom(from: String, index: (T) => Index): TableMigration[T, A]
  49. def reverse: TableMigration[T, Action]
    Implicit
    This member is added by an implicit conversion from TableMigration[T, A] toReversible[T] performed by method Reversible in slick.migration.api.TableMigration.This conversion will take place only if T is a subclass of jdbc.JdbcProfile.Table[_] (T <: jdbc.JdbcProfile.Table[_]) and at the same time A is Reversible (A =:= Reversible).
    Definition Classes
    ReversibleReversibleMigration
  50. def sql: List[String]

    The SQL statements to run

    The SQL statements to run

    Definition Classes
    TableMigrationSqlMigration
  51. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  52. val table: T
  53. def tableInfo(table: TableNode): TableInfo

    table

    a Slick table object whose qualified name is needed

    returns

    a TableInfo representing the qualified name of table

    Attributes
    protected
    Definition Classes
    AstHelpers
  54. val tableInfo: TableInfo
  55. def toString(): String
    Implicit
    This member is added by an implicit conversion from TableMigration[T, A] toReversible[T] performed by method Reversible in slick.migration.api.TableMigration.This conversion will take place only if T is a subclass of jdbc.JdbcProfile.Table[_] (T <: jdbc.JdbcProfile.Table[_]) and at the same time A is Reversible (A =:= Reversible).
    Definition Classes
    Reversible → AnyRef → Any
  56. val underlying: TableMigration[T, Reversible]
    Implicit
    This member is added by an implicit conversion from TableMigration[T, A] toReversible[T] performed by method Reversible in slick.migration.api.TableMigration.This conversion will take place only if T is a subclass of jdbc.JdbcProfile.Table[_] (T <: jdbc.JdbcProfile.Table[_]) and at the same time A is Reversible (A =:= Reversible).
    Definition Classes
    Reversible
  57. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  58. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  59. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Shadowed Implicit Value Members

  1. def apply(): SimpleJdbcAction[Unit]
    Implicit
    This member is added by an implicit conversion from TableMigration[T, A] toReversible[T] performed by method Reversible in slick.migration.api.TableMigration.This conversion will take place only if T is a subclass of jdbc.JdbcProfile.Table[_] (T <: jdbc.JdbcProfile.Table[_]) and at the same time A is Reversible (A =:= Reversible).
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (tableMigration: Reversible[T]).apply()
    Definition Classes
    SqlMigrationMigration
  2. def sql: List[String]

    The SQL statements to run

    The SQL statements to run

    Implicit
    This member is added by an implicit conversion from TableMigration[T, A] toReversible[T] performed by method Reversible in slick.migration.api.TableMigration.This conversion will take place only if T is a subclass of jdbc.JdbcProfile.Table[_] (T <: jdbc.JdbcProfile.Table[_]) and at the same time A is Reversible (A =:= Reversible).
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (tableMigration: Reversible[T]).sql
    Definition Classes
    ReversibleSqlMigration

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from TableMigration[T, A] toStringFormat[TableMigration[T, A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (TableMigration[T, A], B)
    Implicit
    This member is added by an implicit conversion from TableMigration[T, A] toArrowAssoc[TableMigration[T, A]] performed by method ArrowAssoc in scala.Predef.This conversion will take place only if A is Reversible (A =:= Reversible).
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AstHelpers

Inherited from SqlMigration

Inherited from Migration

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion Reversible fromTableMigration[T, A] to Reversible[T]

Inherited by implicit conversion MigrationConcat fromTableMigration[T, A] to MigrationConcat[TableMigration[T, A]]

Inherited by implicit conversion any2stringadd fromTableMigration[T, A] to any2stringadd[TableMigration[T, A]]

Inherited by implicit conversion StringFormat fromTableMigration[T, A] to StringFormat[TableMigration[T, A]]

Inherited by implicit conversion Ensuring fromTableMigration[T, A] to Ensuring[TableMigration[T, A]]

Inherited by implicit conversion ArrowAssoc fromTableMigration[T, A] to ArrowAssoc[TableMigration[T, A]]

oper

Ungrouped