[openstreetmap/openstreetmap-website] Align structure.sql with generated output (Issue #4298)
Andy Allan
notifications at github.com
Wed Nov 29 16:50:58 UTC 2023
> * The schema_migrations table has a wildly different order, but I'll ignore that for now
I found that my schema_migrations values for legacy migrations (before we started using timestamps) were stored with leading zeros, which was messing up the ordering. So to fix this I ran:
```update schema_migrations set version = TRIM(LEADING '0' FROM version);```
and that sorted it out. I haven't managed to uncover why my local machine has those leading zeros, there's nothing obvious in the rails history as to when that might have changed. :man_shrugging:
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/4298#issuecomment-1832323898
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/4298/1832323898 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231129/fd750ab6/attachment.htm>
More information about the rails-dev
mailing list