mirror of https://github.com/grafana/grafana
[release-11.6.3] CloudMigrations: Omit autoincremented id for alert snapshots (#106638)
CloudMigrations: Omit autoincremented id for alert snapshots (#106598)
If you tried to migrate alerts from two differente sources/on-prem instances,
the autoincremented numeric id would be the same, and since we were creating
the resource in cloud with that same id (the API accepts it), it would
return an error "conflicting alert rule found" because that id is the primary key on the table.
We simply omit the numeric id now and let the API for the cloud instance generate it.
(cherry picked from commit a1f2693fd8
)
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com>
pull/106653/head
parent
e35e880e89
commit
0a757fae39
Loading…
Reference in new issue