A callback from the table building Knex.schemaBuilder
calls.
Determine if the blueprint has a create command.
Sets the engine to use when creating the table in MySql
Sets the character set for the table in MySql
Sets the collation for the table in MySql
Adds a comment to the current table being created.
Indicate that the given columns should be dropped.
Indicate that the given columns should be dropped.
Indicate that the given primary key should be dropped.
Indicate that the given unique key should be dropped.
Indicate that the given index should be dropped.
Indicate that the given foreign key should be dropped.
Specify the primary key(s) for the table.
Specify a unique index for the table.
Specify an index for the table.
Rename a column from one value to another value.
Specify a foreign key for the table, also getting any relevant info from the chain during column.
Create a new auto-incrementing column on the table.
Create a new auto-incrementing big-int on the table
Create a new string column on the table.
Alias varchar to string
Create a new text column on the table.
Create a new integer column on the table.
Create a new biginteger column on the table
Create a new tinyinteger column on the table.
Alias for tinyinteger column.
Create a new float column on the table.
Create a new decimal column on the table.
Alias to "bool"
Create a new boolean column on the table
Create a new date column on the table.
Create a new date-time column on the table.
Create a new time column on the table.
Create a new timestamp column on the table.
Add creation and update dateTime's to the table.
Alias to enum.
Create a new enum column on the table.
Create a new bit column on the table.
Create a new binary column on the table.
Create a new json column on the table.
Create a new uuid column on the table.
Create a new drop index command on the blueprint. If the index is an array of columns, the developer means to drop an index merely by specifying the columns involved.
Add a new index command to the blueprint. If no name was specified for this index, we will create one using a basic convention of the table name, followed by the columns, followed by an index type, such as primary or index, which makes the index unique.
Add a new column to the blueprint.
Add a new command to the blueprint.
Sets the "column" that the current column references as the a foreign key
Sets the "table" where the foreign key column is located.
SQL command to run "onDelete"
SQL command to run "onUpdate"
Sets the default value for a column.
For boolean
columns, we'll permit 'false'
to be used as default values.
Sets an integer as unsigned, is a no-op if the column type is not an integer.
Allows the column to contain null values.
Disallow the column from containing null values.
Disallow the column from containing null values.
Adds an index on the specified column.
Sets this column as the primary key.
Sets this column as unique.
Sets the column to be inserted after another, used in MySql alter tables.
Adds a comment to this column.
Schema Builder