我认为生产环境和开发环境都包含该索引:
[91] pry(main)> PluginStoreRow.connection.indexes(“plugin_store_rows”)
=> [#<ActiveRecord::ConnectionAdapters::IndexDefinition:0x00005556a36241d0
@columns=[“plugin_name”, “key”],
@comment=nil,
@lengths={},
@name=“index_plugin_store_rows_on_plugin_name_and_key”,
@opclasses={},
@orders={},
@table=“plugin_store_rows”,
@type=nil,
@unique=true,
@using=:btree,
@where=nil>]
我通过以下方式删除了它们:
PluginStoreRow.find(< id >).destroy
删除重复项后,我进行了备份,并成功恢复到干净的安装状态。因此,我确定这是备份失败的原因。我明天会将此问题移至一个新的 Data Explorer 缺陷主题。不过,我希望能复现这个问题。