juxt / joplin

Flexible datastore migration and seeding for Clojure projects
Eclipse Public License 1.0
316 stars 49 forks source link

DynamoDB: Add ability to define migration table name #99

Closed acron0 closed 6 years ago

acron0 commented 7 years ago

DynamoDB doesn't have a concept of individual databases or name/key-spaces at the account level which means if you're running multiple applications on a single account then you need your own convention for defining table names. When using joplin.dynamodb, using a single 'migrations' clearly means that applications will interfere with one another so this PR introduces a mechanism by which the migrations table name can be specified; for example, app-a-migrations,app-b-migrations` etc.

An example Joplin.edn 'database' field would be:

:db-staging {:type :dynamo
             :endpoint "http://dynamodb.eu-central-1.amazonaws.com"
             :migration-table "my-application-staging-migrations"}
acron0 commented 7 years ago

Bump!