I am wondering if there is a generic way to create an "ordered index" with liquibase. Something that will produce these kind of SQL statement:
CREATE INDEX idx_name ON my_table (m_column DESC)
I need that for oracle, postgresql, mysql, and sql server.
If not, I'll have to do it manually with the SQL
tag for each RDBM.
There is still unresolved feature request for liquibase index ordering at https://liquibase.jira.com/browse/CORE-419.
One possible workaround (since 1.9):
Note that there were even shorter workaround avaliable until validation hardened in liquibase 3.2: