2017-08-08 56 views
1

不知何故,liquibase總是顯示我缺少的所有唯一約束條件。我liquibase.propertiesliquibase diff即使在將數據庫與自己進行比較時也顯示缺少約束條件

url=jdbc:postgresql://localhost:5432/MY_DATABASE 
username=user 
password=pass 
referenceUrl=jdbc:postgresql://localhost:5432/MY_DATABASE 
referenceUsername=user 
referencePassword=pass 

注意的是,在url數據庫和referenceUrl參數是相同的。我跑liquibase diff和我得到的是:

Reference Database: postgres @ jdbc:postgresql://localhost:5432/MY_DATABASE (Default Schema: public) 
Comparison Database: postgres @ jdbc:postgresql://localhost:5432/MY_DATABASE (Default Schema: public) 

[...] 

Missing Unique Constraint(s): 
    email_type_lang_mandant_unique on emailentity(belongsto_userid, emailtype, language) 
    filecard_delivery_source_unique on filecardentity(assignmentdelivery_id, original_cardid) 
    lesson_delivery_source_unique on lessonentity(assignmentdelivery_id, sourcelesson_lessonid) 
    link_type_lang_mandant_unique on linkentity(belongsto_userid, linktype, language) 

    [...] 

Liquibase 'diff' Successful 

我做錯了什麼?

回答

0

當您創建約束時,它們是如何定義的?只是猜測,但可能是他們有不同的名字。執行更詳細的命令可能會揭示問題所在。

+0

當它們的來源是相同的數據庫時,它們如何具有不同的名稱? –

+0

我沒有注意到你正在比較一個數據庫本身。是的,這似乎很奇怪。 – SteveDonie

相關問題