首页 > 解决方案 > Symfony3.4:Postgis,学说模式错误

问题描述

我正在使用 Postgresql 和 Postgis 运行一个应用程序,它运行良好,因为我使用的是 postgresql-9.6 和 postgis-2.3,但是在我升级到 postgresql-10 和 postgis-2.4 后,我在尝试使用该学说创建架构时出错命令:

在 AbstractPostgreSQLDriver.php 第 76 行:

    SQLSTATE[42703]: Undefined column: 7 ERROR:  column "min_value" does not exist    
    LINE 1: SELECT min_value, increment_by FROM "meas_id_seq"

在 PDOConnection.php 第 106 行:

    SQLSTATE[42703]: Undefined column: 7 ERROR:  column "min_value" does not exist    
    LINE 1: SELECT min_value, increment_by FROM "meas_id_seq"

在 PDOConnection.php 第 104 行:

    SQLSTATE[42703]: Undefined column: 7 ERROR:  column "min_value" does not exist  
    LINE 1: SELECT min_value, increment_by FROM "meas_id_seq"

标签: postgresqlpostgissymfony-3.4

解决方案


我正在使用 Symfony 捆绑包https://github.com/jsor/doctrine-postgis。Wich 与最新版本的 PostGIS 不兼容。


推荐阅读