Skip to content

MarcelSmuts/parse-migrations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

A simple database migrator for Parse Platform

Usage

const ParseMigrations = require('parse-migrations')

// Takes in a parse config object. Requires applicationId, masterKey, serverURL
const migrator = new ParseMigrations(parseConfigObject)

// Create new migration in the migrations folder
migrator.make('newMigration')

// Runs all migrations that are not present in the migrations table
migrator.up()

// Run X DOWN migrations where X is the number of migrations
migrator.down(X)

How it works

First checks for any files in the migrations folder. Will then check for existing migrations in migrations table and will not re-run those scripts. Once migrations have been run, they will be added to the migrations table for later

About

A simple database migrator for Parse Platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published