簡體   English   中英

如何為以下 Postgres 索引創建語句創建 Liquibase 變更集 - “使用 btree”

[英]How to create Liquibase changeset for below Postgres index creation statement - "using btree"

create index if not exists department_index 
   on department using btree (department_id);

如何為上述 Postgresql 創建 Liquibase 變更集? 我必須使用“使用 btree”功能才能獲得所需的性能,

如果您不指定其他內容,則默認索引是btree 您可以使用createIndex實體來執行此操作。

參考: Liquibase 文檔:createIndex

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM