{"_id":"sequelize-auto-migrations","_rev":"5-debce23356afa239b7a27467fe200dea","name":"sequelize-auto-migrations","description":"Sequelize migrations generator && runner","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"sequelize-auto-migrations","version":"1.0.0","description":"Sequelize migrations generator && runner","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/flexxnn/sequelize-auto-migrations.git"},"keywords":["sequelize","migrations","migration","database","db","sql"],"author":{"name":"Michael Maslov"},"license":"MIT","bugs":{"url":"https://github.com/flexxnn/sequelize-auto-migrations/issues"},"homepage":"https://github.com/flexxnn/sequelize-auto-migrations#readme","dependencies":{"async":"^2.4.0","command-line-args":"^4.0.4","deep-diff":"^0.3.8","js-beautify":"^1.6.14","lodash":"^4.17.4","object-hash":"^1.1.8","sequelize":"^3.30.4"},"gitHead":"fb7dcc66cefe333aebe4e700be5cacf41703e70b","_id":"sequelize-auto-migrations@1.0.0","_shasum":"f19658435f9352cbf917bc4b1c49c74e26a5e100","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.4","_npmUser":{"name":"flexxnn","email":"flexxnn@gmail.com"},"dist":{"shasum":"f19658435f9352cbf917bc4b1c49c74e26a5e100","tarball":"https://registry.npmjs.org/sequelize-auto-migrations/-/sequelize-auto-migrations-1.0.0.tgz","integrity":"sha512-PlMlYA5gpnowZkFeZB8XgRjL69y82qdFbFwX5ft8baaYVsrdZc6RbwYo0obXryQTFMDhzsf9vPF4g0Xa6RiIow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPGwYGQmee/7DZhy+eYN9PG8htwQyi6D4EvDmEsLeNGwIhAL83MwnhyZQbrt8poHAhnRtDHBVKKaW1XJsJGmUdytfW"}]},"maintainers":[{"name":"flexxnn","email":"flexxnn@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/sequelize-auto-migrations-1.0.0.tgz_1495112687223_0.05037753959186375"},"directories":{}},"1.0.2":{"name":"sequelize-auto-migrations","version":"1.0.2","description":"Sequelize migrations generator && runner","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/flexxnn/sequelize-auto-migrations.git"},"keywords":["sequelize","migrations","migration","database","db","sql"],"author":{"name":"Michael Maslov"},"license":"MIT","bugs":{"url":"https://github.com/flexxnn/sequelize-auto-migrations/issues"},"homepage":"https://github.com/flexxnn/sequelize-auto-migrations#readme","dependencies":{"async":"^2.5.0","command-line-args":"^4.0.6","deep-diff":"^0.3.8","js-beautify":"^1.6.14","lodash":"^4.17.4","object-hash":"^1.1.8","sequelize":"^4.3.2"},"gitHead":"68d0d94c5684bf1333c95961ba5e9af9500c4d11","_id":"sequelize-auto-migrations@1.0.2","_shasum":"f9f883057bff1dbde0eca98275b5aec361775dc8","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.4","_npmUser":{"name":"flexxnn","email":"flexxnn@gmail.com"},"dist":{"shasum":"f9f883057bff1dbde0eca98275b5aec361775dc8","tarball":"https://registry.npmjs.org/sequelize-auto-migrations/-/sequelize-auto-migrations-1.0.2.tgz","integrity":"sha512-6Vv3Xh4VOTGzOYn0Q7zPJb3Pcm/qWLxDPXewVemMapg/LXyPcNDjScBLD1p592z9NQl/w3Ulk52rAiw9WLYWrw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCeiFKPOeWdHmDE6S3ikHWjN1OOonCCu1cd25pErEggYgIhALMubVnxsb7TG0fYb+4SlhqbwVnYmASwqh2oQfxsJMfT"}]},"maintainers":[{"name":"flexxnn","email":"flexxnn@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-auto-migrations-1.0.2.tgz_1500375410787_0.23408093326725066"},"directories":{}},"1.0.3":{"name":"sequelize-auto-migrations","version":"1.0.3","description":"Sequelize migrations generator && runner","main":"index.js","private":false,"bin":{"runmigration":"./bin/runmigration.js","makemigration":"./bin/makemigration.js"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/flexxnn/sequelize-auto-migrations.git"},"keywords":["sequelize","migrations","migration","database","db","sql"],"author":{"name":"Michael Maslov"},"license":"MIT","bugs":{"url":"https://github.com/flexxnn/sequelize-auto-migrations/issues"},"homepage":"https://github.com/flexxnn/sequelize-auto-migrations#readme","dependencies":{"async":"^2.5.1","command-line-args":"^5.0.2","deep-diff":"^0.3.8","js-beautify":"^1.8.9","lodash":"^4.17.11","object-hash":"^1.3.1","sequelize":"^4.42.0"},"gitHead":"6cd3c1f1397fd96ea10e121ca23115c9b0ee3560","_id":"sequelize-auto-migrations@1.0.3","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"flexxnn","email":"flexxnn@gmail.com"},"dist":{"integrity":"sha512-CTh8073gqrthit5xl/ls2lKPzUHzRP/GCY8z99+dlu27oOSmSiFv+NcNHJjmfZvLBSzfif8Nwp3FNtph09Gxew==","shasum":"558a370265c533d8c92f5156f813c5a9b21a09ab","tarball":"https://registry.npmjs.org/sequelize-auto-migrations/-/sequelize-auto-migrations-1.0.3.tgz","fileCount":8,"unpackedSize":38564,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcIMpECRA9TVsSAnZWagAAOmoP/1Uz67uSCJbpSLcYF5Qj\njIWcdd6KvENXaaqyLQvuFNYPzNA93X/60RA8KZ14OX2if3qlGMWKNKISuS4w\nPpT5b3/lmKdBOOIjgFlMyCUGELdAyF6zMwucz4Pi6BAf/1gAZwM2hGhQBTyI\n3TRVXhEnHxgsALxb6db5mJ/01EV4wI6R9BJXiFES3kl9ydhkUgqqpHBxGj2t\nGsO/j8UDI4y1KoSI3NT/di5f6rMaaiBYah64S2EpXleYqr1zfGkfBxCZKlOC\nilygTmskVVGhYu1JIAqcMixdCdZzGSejvnvQoAPVhQZL/hsSi3NKm0zrS4S/\n81kz3+YMalPRv52RQL2hN+kj1zoWzrmY/OT/AwKIrdMlSVXPlFK+JtibcZPS\nPpinF8K9/w6n9fLUIFuNiR7sDbufnmIWUagnSlr+t4EqjgkMGcSn9XDKyHJq\ng1FKx9BvJX+pTKdMEo1tPA59h2b9r4kgaU1q53Ow5doF7xncyP7UevM24FLz\nDyZUc0NEkMtCKiYj/2XYUJMm/yREq42xpFlEShS21Gz4FpnUM/y657kzp9kN\n+Gpgd+HRdaERSPGSQCGBMgyAJeTzMgqemY9uKF/F9xWqN/e0urgGZwjZil8K\nMdrDP2H/9xWTtZ3ZO6xXGQ6tW2654vXsxMBRSRLw3raPnLN8U2ywgtcjhkwv\nc/aX\r\n=bIJR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBlUZSSRwZ2voNjN4mZt8x9RBik0Wn17AlDOOBKMr05JAiBs2Yf+LP0LeVZp+cohJXqLpstxGTEpQnFyu/ySbfxMTg=="}]},"maintainers":[{"name":"flexxnn","email":"flexxnn@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-auto-migrations_1.0.3_1545652803911_0.27106888287532604"},"_hasShrinkwrap":false}},"readme":"# sequelize-auto-migrations\r\nMigration generator &amp;&amp; runner for sequelize\r\n\r\nThis package provide two tools:\r\n* `makemigration` - tool for create new migrations\r\n* `runmigration` - tool for apply created by first tool migrations\r\n\r\n## Install\r\n`npm install sequelize-auto-migrations`\r\n\r\n## Usage\r\n* Init sequelize, with sequelize-cli, using `sequelize init`\r\n* Create your models\r\n* Create initial migration - run:\r\n\r\n`makemigration --name <migration name>`\r\n* Change models and run it again, model difference will be saved to the next migration\r\n\r\nTo preview new migration, without any changes, you can run:\r\n\r\n`makemigration --preview`\r\n\r\n`makemigration` tool creates `_current.json` file in `migrations` dir, that is used to calculate difference to the next migration. Do not remove it!\r\n\r\nTo create and then execute migration, use:\r\n`makemigration --name <name> -x`\r\n\r\n## Executing migrations\r\n* There is simple command to perform all created migrations (from selected revision):\r\n\r\n`runmigration`\r\n* To select a revision, use `--rev <x>`\r\n* If migration fails, you can continue, use `--pos <x>`\r\n* To prevent execution next migrations, use `--one`\r\n\r\n\r\nFor more information, use `makemigration --help`, `runmigration --help`\r\n\r\n## TODO:\r\n* Migration action sorting procedure need some fixes. When many foreign keys in tables, there is a bug with action order. Now, please check it manually (`--preview` option)\r\n* Need to check (and maybe fix) field types: `BLOB`, `RANGE`, `ARRAY`, `GEOMETRY`, `GEOGRAPHY`\r\n* Downgrade is not supported, add it\r\n* This module tested with postgresql (I use it with my projects). Test with mysql and sqlite.\r\n","maintainers":[{"name":"flexxnn","email":"flexxnn@gmail.com"}],"time":{"modified":"2022-06-26T17:48:03.894Z","created":"2017-05-18T13:04:48.985Z","1.0.0":"2017-05-18T13:04:48.985Z","1.0.2":"2017-07-18T10:56:51.754Z","1.0.3":"2018-12-24T12:00:04.054Z"},"homepage":"https://github.com/flexxnn/sequelize-auto-migrations#readme","keywords":["sequelize","migrations","migration","database","db","sql"],"repository":{"type":"git","url":"git+https://github.com/flexxnn/sequelize-auto-migrations.git"},"author":{"name":"Michael Maslov"},"bugs":{"url":"https://github.com/flexxnn/sequelize-auto-migrations/issues"},"license":"MIT","readmeFilename":"README.md"}