Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait SqlMigrationtrait Migrationclass Objecttrait Matchableclass AnyShow all
Members list
Grouped members
oper
Add columns to the table. (If the table is being created, these may be incorporated into the CREATE TABLE
statement.)
Add columns to the table. (If the table is being created, these may be incorporated into the CREATE TABLE
statement.)
Value parameters
- cols
-
zero or more column-returning functions, which are passed the table object.
Attributes
- Example
-
tblMig.addColumns(_.col1, _.col2, _.column[Int]("fieldNotYetInTableDef"))
Adds foreign key constraints.
Adds foreign key constraints.
Value parameters
- fkqs
-
zero or more
ForeignKeyQuery
-returning functions, which are passed the table object.
Attributes
- Example
-
tblMig.addForeignKeys(_.fkDef)
Adds indexes
Adds indexes
Value parameters
- indexes
-
zero or more
Index
-returning functions, which are passed the table object.
Attributes
- Example
-
tblMig.addIndexes(_.idxDef)
Adds primary key constraints.
Adds primary key constraints.
Value parameters
- pks
-
zero or more
PrimaryKey
-returning functions, which are passed the table object.
Attributes
- Example
-
tblMig.addPrimaryKeys(_.pkDef)
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
Value parameters
- cols
-
zero or more column-returning functions, which are passed the table object.
Attributes
- Example
-
tblMig.alterColumnDefaults(_.col1, _.column[Int]("col2", O.Default("notTheDefaultInTableDef")))
Changes the nullability of columns based on the column definitions in cols
Changes the nullability of columns based on the column definitions in cols
Value parameters
- cols
-
zero or more column-returning functions, which are passed the table object.
Attributes
- Example
-
tblMig.alterColumnNulls(_.col1, _.column[Int]("col2", O.NotNull))
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
Value parameters
- cols
-
zero or more column-returning functions, which are passed the table object.
Attributes
- Example
-
tblMig.alterColumnTypes(_.col1, _.column[NotTheTypeInTableDef]("col2"))
Create the table.
Create the table.
Attributes
Drop the table.
Drop the table.
Attributes
Drop columns.
Drop columns.
Value parameters
- cols
-
zero or more column-returning functions, which are passed the table object.
Attributes
- Example
-
tblMig.dropColumns(_.col1, _.col2, _.column[Int]("oldFieldNotInTableDef"))
Drops foreign key constraints.
Drops foreign key constraints.
Value parameters
- fkqs
-
zero or more
ForeignKeyQuery
-returning functions, which are passed the table object.
Attributes
- Example
-
tblMig.dropForeignKeys(_.fkDef)
Drops indexes
Drops indexes
Value parameters
- indexes
-
zero or more
Index
-returning functions, which are passed the table object.
Attributes
- Example
-
tblMig.dropIndexes(_.idxDef)
Drops primary key constraints.
Drops primary key constraints.
Value parameters
- pks
-
zero or more
PrimaryKey
-returning functions, which are passed the table object.
Attributes
- Example
-
tblMig.dropPrimaryKeys(_.pkDef)
Rename the table
Rename the table
Value parameters
- to
-
the new name for the table
Attributes
Rename a column.
Rename a column.
Value parameters
- col
-
a column-returning function, which is passed the table object.
Attributes
- Example
-
tblMig.renameColumn(_.col1, "newName")
Renames an index
Renames an index
Value parameters
- index
-
an
Index
-returning function, which is passed the table object.
Attributes
- Example
-
tblMig.renameIndex(_.idxDef, "newName")
Value members
Concrete methods
Adds a column and populates it without a column default in the future.
Adds a column and populates it without a column default in the future.
Attributes
Attributes
- Note
-
rawSqlExpr
is used as raw SQL, with the security implications thereof
The SQL statements to run
The SQL statements to run
Attributes
Inherited methods
Attributes
- Inherited from:
- SqlMigration
Attributes
- Inherited from:
- SqlMigration
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product