Psycopg2.errors.UndefinedFunction: function gen_random_uuid() does not exist
Error occurs when trying to run python manage.py migrate
in a django application.
complete code
git clone https://github.com/saleor/saleor.git
cd saleor
python manage.py migrate
psycopg2.errors.UndefinedFunction: function gen_random_uuid() does not exist
LINE 1: UPDATE "account_user" SET "uuid" = GEN_RANDOM_UUID()
it doesn't work when running
but works in running postgres
I created extention in postgres, commited that.
postgres=# SELECT gen_random_uuid()
;
gen_random_uuid
f36d69b7-5681-4b92-b37e-9b0217b7d829
(1 row)
It works fine with docker.
Any help will be appreciated.