-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PostgreSQL UUID #3009
Comments
I will check this. |
This could be kind of breaking change. Because new library does not support older versions of postgres: |
New extension does not support Old postgres versions: 9.2 / 9.1 / 9.0 / 8.4 / 8.3
9.2 is 8 years old, who still use it? Also, it's possible to get DB version and use proper extension. I also like to support every version of OS when developing software with any version of DBMS, but it's way to unnecessary complications for small teams, because in same time software should support new features. |
New extension does not support Old postgres versions: 9.2 / 9.1 / 9.0 / 8.4 / 8.3 Fixed test
New extension does not support Old postgres versions: 9.2 / 9.1 / 9.0 / 8.4 / 8.3
@GitStorageOne that's all fine. I just tought may be it should be mentioned somewhere in TypeORM docs. |
New extension does not support Old postgres versions: 9.2 / 9.1 / 9.0 / 8.4 / 8.3
@pleerock what about we use module https://www.npmjs.com/package/uuid for this? That would fit all database dialects. |
@GitStorageOne I know this is super late but this is fixed in v0.2.15 - you can now specify |
Sorry to have to reopen this again, but I'm specifying |
What version of typeorm do you use? How does your connection config look? |
@vlapo I had to update my TypeORM and forgot to mention it in this issue. It's resolved |
I'm using the typeORM@latest and postgresql 11.5 but yet |
This fixed the issue for me: |
Issue type:
[ ] question
[ ] bug report
[x] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[x]
postgres
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[ ]
latest
[ ]
@next
[x]
0.2.8
(or put your version here)Steps to reproduce or a small repository showing the problem:
If you only need randomly-generated (version 4) UUIDs, consider using the gen_random_uuid() function from the pgcrypto module instead.
Source.
So, when @PrimaryGeneratedColumn('uuid') used, seems it's recommended to use another extension.
By the way, how to change the name of constraint that PrimaryGeneratedColumn create?
The text was updated successfully, but these errors were encountered: