MigrationOperation constructor

const MigrationOperation({
  1. required MigrationType type,
  2. FieldSchema? field,
  3. FieldSchemaUpdate? fieldUpdate,
  4. String? fieldName,
  5. String? newName,
  6. IndexSchema? index,
  7. String? indexName,
  8. List<String>? fields,
  9. bool? unique,
  10. String? newTableName,
  11. PrimaryKeyConfig? primaryKeyConfig,
  12. PrimaryKeyConfig? oldPrimaryKeyConfig,
  13. ForeignKeySchema? foreignKey,
  14. String? foreignKeyName,
  15. 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,
});