DropColumn class
SQLite doesn't have a catch-all drop column command. On migrate, the provider can search for
columns prefixed by _should_drop
and generate a statement that includes the schema of
the full table to be ALTER
ed.
- Inheritance
-
- Object
- MigrationCommand
- DropColumn
Constructors
- DropColumn(String name, {required String onTable})
-
const
Properties
- down → MigrationCommand?
-
Outputs the opposite command to be used in a generator
no setterinherited
- forGenerator → String
-
Outputs model as String to be used in a generator
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
final
- onTable → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statement → String?
-
SQLite does not support dropping individual columns. Instead, this command
must be handled during migration when access to the table schema is available.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Alias for statement
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited