renderAddIndex method
Implementation
@override
List<String> renderAddIndex(String tableName, IndexBlueprint index) {
return [
jsonEncode({
'_vania_migration': 'createIndex',
'collection': tableName,
'keys': {for (final c in index.columns) c: 1},
'options': {
'name': index.name,
if (index.type == ColumnIndex.unique) 'unique': true,
},
}),
];
}