1
不知何故,liquibase總是顯示我缺少的所有唯一約束條件。我liquibase.properties
:liquibase 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
我做錯了什麼?
當它們的來源是相同的數據庫時,它們如何具有不同的名稱? –
我沒有注意到你正在比較一個數據庫本身。是的,這似乎很奇怪。 – SteveDonie