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

How to specify rollback in JSON changelog file?

$
0
0
  1. {
  2.     "databaseChangeLog":[
  3.         {
  4.             "changeSet":{
  5.                 "id":"1",
  6.                 "author":"someone",
  7.                 "changes":[
  8.                     {
  9.                         "createTable":{
  10.                             "tableName":"USER",
  11.                             "columns":[
  12.                                 {
  13.                                     "column":{
  14.                                         "name":"NAME",
  15.                                         "type":"VARCHAR(255)"
  16.                                     }
  17.                                 }
  18.                             ]
  19.                         }
  20.                     },
  21.                     {
  22.                         "loadData":{
  23.                             "file":"db/changelogs/1.0.0 initialization/data/user.csv",
  24.                             "tableName":"USER"
  25.                         }
  26.                     }
  27.                 ]
  28.             }
  29.         }
  30.     ]
  31. }

I want to just drop table with all its content.
I've tried different approaches, but no rollback is triggered


Viewing all articles
Browse latest Browse all 2993

Trending Articles



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