Template creation

You want to create your own template? You don't need to directly contribute to the project. You can require them directly in the database.json config.

There are two ways, to use your own templates.

Global deploy

You can create a template and make it available for everyone, by publishing it via npm.

You need to follow the name convention umigrate-yourNameHere.

Local deploy

You don't need to publish your template, instead see the non global configuration at the features

Base Template

You need to inherit from the following interface, or at least you need to provide all functions available.

To require the base template, you need to do the following:

$ npm install umigrate-template-basedriver --save

After this you can require this base template and inherit from it via util.

Example template

The default template is the perfect way for you to start developing your own template.

You can find the template here.