Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Generate SQL file without reference schema

$
0
0
Hi,
there is a possibility for Liquibase to generate sql file using updateSql. Also now offline mode is available but you need to provide changelog as a changelog table. But why it is not possible to generate an SQL file without any schema just having if clause to apply or skip migrations, for example:

if <databasechangelog not contains migration_1>
then
    migration_1
    mark migration_1 as completed
end

if <databasechangelog not contains migration_2>
then
    migration_2
    mark migration_2 as completed
end
...
      
So in this case we can generate SQL file without having any reference schemas. What do you think about this idea or, probably, it is already implemented?
Thanks!


Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>