Replies: 4 comments 4 replies
-
That's pretty standard. Deleting records doesn't free up their old ID in an euro-incrementing database. The asset ID shouldn't have to match the asset tag for the QR codes to work though - that's kind of the point of them. The Snipe-IT QR code doesn't care what your asset tag is, it just points to the ID URL. |
Beta Was this translation helpful? Give feedback.
-
Generally we advise against trying to to do anything with ID's - the database will pick what the database wants to pick for that. But there is an Looks to be something like |
Beta Was this translation helpful? Give feedback.
-
Changing asset ID numbers will very likely break your database though, as any actionlogs associated with those IDs will now have broken relationships. We use those asset IDs in all of our database relationship joins. |
Beta Was this translation helpful? Give feedback.
-
Hi Everyone, Thank you for the swift replies. Ah right, well given that information I think it best that we find another way around the issue rather than altering the ID increment. If our next ID is 534 and the next auto increment is 540, what would be the best way to make them match? If I created a series of dummy assets and then deleted them until I hit ID 540 would that work? Cheers! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Everyone,
I hope you are all safe and well!
We've encountered an issue with our version of Snipe and I was hoping I could pick the brain of the SnipeIt collective to find a solution.
In our Snipe install our Asset ID's must match our asset tags (ie. Asset with the ID of 508 is named as ASSET508) as we use a QR code which when scanned takes us directly to the URL of said asset.
After a series of deletions we are trying to continue from ID 508 so it will line up with the next asset name. (Though we can change the asset name to match it is the ID which is important).
After purging all of the soft delete records I am still seeing a problem when creating a new asset. Whereby instead of starting from ID 508, it starts much later down the line at the next asset that would have been in line before the deletions.
Is there anything else I can do to make snipe recognise that these asset IDs no longer exist and begin from the ones we want?
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions