symfony 3 doctrine将数据从mysql移植到postgres

时间:2017-02-06 18:17:03

标签: mysql postgresql symfony database-migration

我有一个使用Symfony3和MySQL构建的网站。 现在我必须从MySQL迁移到Postgres以满足特殊需求。

我发现这个工具可以自动迁移它(nmig),所有这一切都已完成,没有发现问题!是啊!

我已经改变了我的app / config / parameters.yml,就像symfony文档所说的那样。

缓存已清除!

但是当我尝试从symfony表单索引执行简单查询时,我收到此错误:

执行

时发生异常
SELECT DISTINCT id_0, MIN(sclr_25) AS dctrn_minrownum
FROM (
      SELECT c0_.ID AS id_0,
             c0_.RAG_SOCIALE AS rag_sociale_1,
             c0_.INDIRIZZO AS indirizzo_2,
             c0_.CIVICO AS civico_3,
             c0_.CITTA AS citta_4,
             c0_.PROVINCIA AS provincia_5,
             c0_.NAZIONE AS nazione_6,
             c0_.SETTORE AS settore_7,
             c0_.REFERENTE1 AS referente1_8,
             c0_.REFERENTE2 AS referente2_9,
             c0_.CAP AS cap_10,
             c0_.EMAIL1 AS email1_11,
             c0_.EMAIL2 AS email2_12,
             c0_.PIVA AS piva_13,
             c0_.PATHLOGO AS pathlogo_14,
             c0_.TELEFONO AS telefono_15,
             c0_.NOTE AS note_16,
             c0_.VALORE_OFFERTE_TOTALI AS valore_offerte_totali_17,
             c0_.VALORE_OFF_ORD_ATTIVE AS valore_off_ord_attive_18,
             c0_.VALORE_FATTURE_TOTALI AS valore_fatture_totali_19,
             c0_.BANCA_APPOGGIO AS banca_appoggio_20,
             c0_.CONDIZIONI_PAGAMENTO AS condizioni_pagamento_21,
             c0_.RELATIVEID AS relativeid_22,
             c0_.created_at AS created_at_23,
             c0_.updated_at AS updated_at_24,
             ROW_NUMBER() OVER(ORDER BY c0_.ID DESC) AS sclr_25
        FROM clienti c0_
    ) dctrn_result
    GROUP BY id_0
    ORDER BY dctrn_minrownum ASC
    LIMIT 10
    OFFSET 0

**SQLSTATE[42703]: Undefined column: 7 ERRORE: la colonna c0_.id non esiste
LINE 1: ...d_0, MIN(sclr_25) AS dctrn_minrownum FROM (SELECT c0_.ID AS ...
^

500内部服务器错误 - InvalidFieldNameException **

如果我在sqleditor中尝试此查询时出现相同的错误:同样的错误!

我的配置有什么问题?

THX

0 个答案:

没有答案