diff --git a/database/migrations/2022_10_17_183844_drop_unique_index_on_flow_measures_table.php b/database/migrations/2022_10_17_183844_drop_unique_index_on_flow_measures_table.php new file mode 100644 index 00000000..0d178599 --- /dev/null +++ b/database/migrations/2022_10_17_183844_drop_unique_index_on_flow_measures_table.php @@ -0,0 +1,34 @@ +getDoctrineSchemaManager()->listTableIndexes('flow_measures'); + if (array_key_exists('flow_measures_identifier_unique', $indexes)) { + $table->dropUnique('flow_measures_identifier_unique'); + } + + $table->index('identifier'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +};