repush indexName change

Signed-off-by: tonedef <kobylk@gmail.com>
This commit is contained in:
tonedef
2022-10-06 16:26:32 -07:00
committed by Fredrik Adelöw
parent 7e87a56a0f
commit 1fdd91514a
@@ -60,9 +60,7 @@ exports.up = async function up(knex) {
.dateTime('last_discovery_at') // TODO: timezone or change to epoch-millis or similar
.notNullable()
.comment('The last timestamp that this entity was discovered');
table.unique(['entity_ref'], {
indexName: 'refresh_state_entity_ref_uniq',
});
table.unique(['entity_ref'], { indexName: 'refresh_state_entity_ref_uniq' });
table.index('entity_id', 'refresh_state_entity_id_idx');
table.index('entity_ref', 'refresh_state_entity_ref_idx');
table.index('next_update_at', 'refresh_state_next_update_at_idx');