@haoc-labs/mygreat
Agnostic migration tool
Last updated 3 years ago by rwillians .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @haoc-labs/mygreat 
SYNC missed versions from official npm registry.

mygreat

Agnostic migration tool

Usage

Structure:

- /
  - migrations/
    - 20171001190100.js
    - 20171001190200.js
  - remote-synced-sample/
  - .mygreat.js

Migration file example:

'use strict'

module.exports = {
    up: async (db) => { },
    down: async (db) => { }
}

.mygreat.js configuration file sample:

'use strict'

const Database = require('some-database')
const directory = require('@haoc-labs/mygreat-directory')

module.exports = (env) => ({
    local: directory('./migrations'),
    remote: directory('./remote-synced-sample'),
    setup: () => new Database('localhost')
})

Current Tags

  • 1.0.2                                ...           latest (3 years ago)

73 Versions

  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.2.69                                ...           3 years ago
  • 0.2.68                                ...           3 years ago
  • 0.2.67                                ...           3 years ago
  • 0.2.66                                ...           3 years ago
  • 0.2.65                                ...           3 years ago
  • 0.2.64                                ...           3 years ago
  • 0.2.63                                ...           3 years ago
  • 0.2.62                                ...           3 years ago
  • 0.2.61                                ...           3 years ago
  • 0.2.60                                ...           3 years ago
  • 0.2.59                                ...           3 years ago
  • 0.2.58                                ...           3 years ago
  • 0.2.57                                ...           3 years ago
  • 0.2.56                                ...           3 years ago
  • 0.2.55                                ...           3 years ago
  • 0.2.54                                ...           3 years ago
  • 0.2.53                                ...           3 years ago
  • 0.2.52                                ...           3 years ago
  • 0.2.51                                ...           3 years ago
  • 0.2.50                                ...           3 years ago
  • 0.2.49                                ...           3 years ago
  • 0.2.48                                ...           3 years ago
  • 0.2.47                                ...           3 years ago
  • 0.2.46                                ...           3 years ago
  • 0.2.45                                ...           3 years ago
  • 0.2.44                                ...           3 years ago
  • 0.2.43                                ...           3 years ago
  • 0.2.42                                ...           3 years ago
  • 0.2.41                                ...           3 years ago
  • 0.2.40                                ...           3 years ago
  • 0.2.39                                ...           3 years ago
  • 0.2.38                                ...           3 years ago
  • 0.2.37                                ...           3 years ago
  • 0.2.36                                ...           3 years ago
  • 0.2.35                                ...           3 years ago
  • 0.2.34                                ...           3 years ago
  • 0.2.33                                ...           3 years ago
  • 0.2.32                                ...           3 years ago
  • 0.2.31                                ...           3 years ago
  • 0.2.30                                ...           3 years ago
  • 0.2.29                                ...           3 years ago
  • 0.2.28                                ...           3 years ago
  • 0.2.27                                ...           3 years ago
  • 0.2.26                                ...           3 years ago
  • 0.2.25                                ...           3 years ago
  • 0.2.24                                ...           3 years ago
  • 0.2.23                                ...           3 years ago
  • 0.2.22                                ...           3 years ago
  • 0.2.21                                ...           3 years ago
  • 0.2.20                                ...           3 years ago
  • 0.2.19                                ...           3 years ago
  • 0.2.18                                ...           3 years ago
  • 0.2.17                                ...           3 years ago
  • 0.2.16                                ...           3 years ago
  • 0.2.15                                ...           3 years ago
  • 0.2.14                                ...           3 years ago
  • 0.2.13                                ...           3 years ago
  • 0.2.11                                ...           3 years ago
  • 0.2.10                                ...           3 years ago
  • 0.2.9                                ...           3 years ago
  • 0.2.8                                ...           3 years ago
  • 0.2.7                                ...           3 years ago
  • 0.2.6                                ...           3 years ago
  • 0.2.5                                ...           3 years ago
  • 0.2.4                                ...           3 years ago
  • 0.2.3                                ...           3 years ago
  • 0.2.2                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Maintainers (2)
Downloads
Today 0
This Week 73
This Month 73
Last Day 0
Last Week 0
Last Month 1
Dependencies (5)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |