How to overwrite output files in SQLcl Liquibase?

108 views Asked by At

I am learning Liquibase, exporting Oracle Apex application like this:

PS D:\projects\RDNA2\db\rdna2-apex> sql rdna2@rdna2
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8


SQLcl: Release 23.2 Production on Fri Sep 22 10:50:12 2023

Copyright (c) 1982, 2023, Oracle.  All rights reserved.   

Password? (**********?) ******
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.20.0.0.0

SQL> lb generate-apex-object -applicationid 200 -split

It generates files just fine. But next time I do this it make new files. I found --overwrite-output-file parameter for Liquibase, but it doesn't work in SQLcl version.

1

There are 1 answers

4
thatjeffsmith On BEST ANSWER

We don't support that option, you'll need to start with an empty directory.

We have that request logged as an enhancement, and I don't see why we couldn't enable that behavior.