-
Notifications
You must be signed in to change notification settings - Fork 111
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
QueryFailedError: function uuid_generate_v4() does not exist #126
Comments
Oh.. and typeorm needs to be upgraded. |
I've been implementing this in a separated typeorm project, with an external dependency uuid and using @BeforeInsert from typeorm when creating the Entity. just as an fyi, in case it helps you patch this temporarily, not suggesting not to use postgres add-on.
|
EDIT: Everything is working good with pgcrypto. |
Both circleci and heroku install this by default. I would say it's almost mandatory to have uuid support in postgres today. TypeORM will attempt to enable the extension on start. Are you guys running on windows maybe? I am all for fixing platform issues. |
I'm using the stable helm chart and install postgres on kubernetes. The maintainers have refused to install this deprecated plugin. Which has forced TypeORM to implement a fix. Which was merged a few weeks back. |
Would you except a PR to fix? |
Absolutely! Is it a matter of just upgrading typeorm? |
Upgrading typeorm and also passing on the extra settings from the ENV db connection string. Can give this a crack in a couple days time. |
Sorry, newbie to primeCMS here. I'm getting this error and not exactly sure on the steps to fix it. Any thoughts? Thanks |
You need to create the extension uuid_ossp on the database you're using: |
@tolumide-ng why i have to run this command? Pg dont have natively this? |
Apparently most new installations of Postgres don't include the extension uuid-ossp
However typeorm have added in an extra option:
uuidExtension: pgcrypto to allow for this:
typeorm/typeorm#3537
Might have to create another querystring override?
prime/packages/prime-core/src/utils/connect.ts
Line 13 in 7b0f33c
The text was updated successfully, but these errors were encountered: