DropColumn class Null safety

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 ALTERed.

Inheritance

Constructors

DropColumn(String name, {required String onTable})
const

Properties

down MigrationCommand?
Outputs the opposite command to be used in a generator
read-only, inherited
forGenerator String
Outputs model as String to be used in a generator
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
final
onTable String
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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.
read-only, override

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Alias for statement
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited