AlterTable constructor

const AlterTable({
  1. required TableInfo oldTable,
  2. required TableInfo newTable,
  3. Map<String, String> renamedColumns = const {},
  4. List<IndexInfo> oldIndexes = const [],
  5. List<IndexInfo> newIndexes = const [],
  6. List<ReferencedBy> referencedBy = const [],
})

Operation carrying every intra-table change as one unit: the full old and new definitions, detected column renames, the table's indexes on both sides, and the tables whose foreign keys reference it.

Implementation

const AlterTable({
  required this.oldTable,
  required this.newTable,
  this.renamedColumns = const {},
  this.oldIndexes = const [],
  this.newIndexes = const [],
  this.referencedBy = const [],
});