MigrationOperation constructor
const
MigrationOperation({
- required MigrationType type,
- FieldSchema? field,
- FieldSchemaUpdate? fieldUpdate,
- String? fieldName,
- String? newName,
- IndexSchema? index,
- String? indexName,
- List<
String> ? fields, - bool? unique,
- String? newTableName,
- PrimaryKeyConfig? primaryKeyConfig,
- PrimaryKeyConfig? oldPrimaryKeyConfig,
- ForeignKeySchema? foreignKey,
- String? foreignKeyName,
- ForeignKeySchema? oldForeignKey,
Implementation
const MigrationOperation({
required this.type,
this.field,
this.fieldUpdate,
this.fieldName,
this.newName,
this.index,
this.indexName,
this.fields,
this.unique,
this.newTableName,
this.primaryKeyConfig,
this.oldPrimaryKeyConfig,
this.foreignKey,
this.foreignKeyName,
this.oldForeignKey,
});