You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ghosted our nightly DB. No biggie, that's what nightly's for. @pleerock Where does this rank priority-wise? We'd like to take advantage of the latest release.
This #7853 is more than breaking change to me because I have a lot of uuid columns which is the primary key in my product.
The migration problem is huge to me.
Please consider the implementation which we can choose varchar or char
Hi! My colleague @jsproede and I had the same problem and since we didn't find any other solution, we wrote a migration. Maybe this helps one or the other.
The migration reads all your entities, finds their primary/foreign keys and modifies the column type.
First we need to disable the foreign key checks, after everything has gone through we need to enable them again.
The good thing about this solution is that no data is lost!
Activity
Diluka commentedon Sep 6, 2021
what's the update? I need
varchartype.Diluka commentedon Sep 6, 2021
why just mysql changed into
charhowever other dbs(which not native support uuid) usingvarcharDiluka commentedon Sep 24, 2021
for mysql, this is like before
maitrungduc1410 commentedon Sep 24, 2021
I'm having same issue, after syncing, our production database columns get cleared because of this. Thanks for new release !
nallenscott commentedon Oct 20, 2021
Ghosted our nightly DB. No biggie, that's what nightly's for. @pleerock Where does this rank priority-wise? We'd like to take advantage of the latest release.
knsg16 commentedon Nov 4, 2021
The same issue happened to me!
This #7853 is more than breaking change to me because I have a lot of
uuidcolumns which is the primary key in my product.The migration problem is huge to me.
Please consider the implementation which we can choose
varcharorcharjusfeel commentedon Nov 4, 2021
Just to share some experience.
Basically, the generated migration script will DROP/ADD COLUMN on the keys which can be replaced with MODIFY COLUMN. That's pretty much it for me.
It's indeed troublesome if you have many tables.
ph1p commentedon Nov 9, 2021
Hi! My colleague @jsproede and I had the same problem and since we didn't find any other solution, we wrote a migration. Maybe this helps one or the other.
The migration reads all your entities, finds their primary/foreign keys and modifies the column type.
First we need to disable the foreign key checks, after everything has gone through we need to enable them again.
The good thing about this solution is that no data is lost!
Caution: Use at your own risk!
More: #8167 #7853
Docs: https://github.com/typeorm/typeorm/blob/master/docs/migrations.md