CreateIndex constructor

const CreateIndex({
  1. required String onTable,
  2. required List<String> columns,
  3. bool unique = false,
})

As a migration, this may fail if existing data is in conflict with the index. Before running this migration command, ensure that its table is either clean or does not contain data that conflicts with the columns specified by the index.

Implementation

const CreateIndex({
  required this.onTable,
  required this.columns,
  this.unique = false,
});