我正在尝试使用node-pg-migrate
并运行迁移以在我的node项目中创建表格。
当我运行迁移时,我会收到"function uuid_generate_v4() does not exist."的错误提示。
我已经检查了我的扩展,并且uuid-ossp是可用的。
extname | extowner | extnamespace | extrelocatable | extversion | extconfig | extcondition
-----------+----------+--------------+----------------+------------+-----------+--------------
plpgsql | 10 | 11 | f | 1.0 | |
uuid-ossp | 16384 | 2200 | t | 1.1 | |
(2 rows)
我希望我的迁移可以成功运行,但它却失败了。我使用的是Mac上的Postgres 11。
从这里安装的Postgres - https://postgresapp.com/