How do I add coordinate Document Tables creation with my migration tool?
Created by: vibl
I need to add columns to a Document Table. What is the recommended practice to make sure the table has been created (by
db.saveDoc('myTable'...)) before running the migration script that will add the columns to it?
I use https://github.com/golang-migrate/migrate, a simple CLI tool that uses SQL files for migration. It doesn't have the ability to execute arbitrary scripts has part of a migration plan (yet: https://github.com/mattes/migrate/issues/171).