Fork me on GitHub
#duct
<
2018-01-05
>
yogidevbear09:01:36

@weavejester (or anyone else that might have done this already) I'm trying to figure out how to have multiple migrations run within a duct application. The guide () only shows this for a single table:

:duct.migrator/ragtime
{:migrations [#ig/ref :todo.migration/create-entries]}

[:duct.migrator.ragtime/sql :todo.migration/create-entries]
{:up ["CREATE TABLE entries (id INTEGER PRIMARY KEY, content TEXT)"]
 :down ["DROP TABLE entries"]}

yogidevbear09:01:05

How would I go about having more than a single table/migration/ragtime?

yogidevbear09:01:27

Is the entire process supposed to be defined inside of that single :up and :down SQL declaration or is it possible to have multiple scripts like:

:duct.migrator/ragtime
{:migrations [#ig/ref :todo.migration/create-entries #ig/ref :todo.migration/create-something-else]}

yogidevbear09:01:22

nvm - figured it out. Looks like my parinfer wasn't working. Had an extra terminating } 😊