aleksanderaleksic / tgmigrate

7 stars 1 forks source link

Option to run bash script migrations. #16

Open aleksanderaleksic opened 3 years ago

aleksanderaleksic commented 3 years ago

Sometimes more logic in the migration might be needed. Then having support to trigger bash scripts would be a nice additon. The nice thing with running it from tgmigrate is that you store the history so it is only applied once

migrate "script" "bash" {
  type = "bash"
  file = "./some_advanced_migration.sh"
  parameters = {
     param1 = "val1"
     param2 = "${VARIABLE}"
  }
}