Skip to content

HeliosInteractive/sails-hook-migrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sails Hook Migrate

Uses DB Migrate to handle database migrations automatically when lifting sails.

Supported Databases:

  • MySQL
  • PostgreSQL
  • sqlite3
  • MongoDB

Dependencies (optional)

Highly recommended to use with sails-generate-migrate to create migration scripts from the command line.

npm i -S sails-generate-migrate

Installation

npm i -S sails-generate-migrate sails-hook-migrate

Usage

Create a migrations folder and run sails lift!

  • Create a migrations folder
  • sails lift

Migrate will detect the connection specified by your sails config and run migrate up. You can also override the connection settings in the configuration.

Configuration

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published