LiquiBase - Passing Parameter From CommandLine Or Properties to Changeset XML

前端 未结 2 1256
自闭症患者
自闭症患者 2021-01-25 02:43

I am trying to pass a parameter from my update command as well as the liquibase properties file to my changeset. For some reason, it does not recognise the placeholder as a para

2条回答
  •  北恋
    北恋 (楼主)
    2021-01-25 03:18

    Rather than using this in your changelog:

    
        
            
            
          
    
    

    it should look more like this:

    
        
            
            
          
    
    

    The -D on the command line is the standard java mechanism for setting system properties, but when accessing them you just use the property name. I am fairly certain that you don't need to use the liquibase.properties prefix either.

提交回复
热议问题