{"_id":"@astrocoders/migrathor","_rev":"4-3312ad54cb5d6f3e37b17525e156d487","name":"@astrocoders/migrathor","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@astrocoders/migrathor","version":"1.0.0","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/Astrocoders/migrathor.git"},"author":{"name":"Astrocoders","email":"george.lima@astrocoders.com"},"license":"MIT","scripts":{"prepare":"yarn build","build":"tsc"},"devDependencies":{"@types/node":"^12.6.8","@types/pg":"^7.4.14","typescript":"^3.5.3"},"peerDependencies":{"pg":"^7.11.0"},"bin":{"migrathor":"lib/index.js"},"gitHead":"65f844c6baa6df76fe88d60e0834b17301888d8a","description":"Create a migrathorconfig.js file in the root directory of your project. For example:","bugs":{"url":"https://github.com/Astrocoders/migrathor/issues"},"homepage":"https://github.com/Astrocoders/migrathor#readme","_id":"@astrocoders/migrathor@1.0.0","_nodeVersion":"11.14.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-6/bMQkuZaN9eX5F95VcqOQwhD96pmo1KsSsRV8Zyt/gO4XAI1BcSKbGs8MhsOut8wjTTcjt7guJeWpXtZf80Dw==","shasum":"37e4db7f4be46f40873eb1f9dd23d23ba8e4a5c2","tarball":"https://registry.npmjs.org/@astrocoders/migrathor/-/migrathor-1.0.0.tgz","fileCount":10,"unpackedSize":14808,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdO1J+CRA9TVsSAnZWagAAiL0P/0l+odMYIxB8iRPLMWwz\nrKojliKVdGFi7DPA0s9vAMfFgFceS35xu2heVGeaU4NEUSZ+q59wNqdQqoQd\nCd59WaFRHkRcbYd/lzW9u/szHGlLODCS/pc4CHgaxVwXaCUkWE/CYhc32MN3\nMX/2S0ctyp6zZWMXCTYF0aU7Zj0gpMelNS5M6qLm8OnoThFetFiI3EfZLQcM\nc3Gy4Az1X0k/G3+NcIj6mvlKwI9l865kleYkTAgC5db5YPDOj5weMwGVZwTo\nmqUE6nSNxWhfyoCRE+jGuvWvUtsb7c6b8WNYmo6iuLWg8xdJ+818Z4PD14x2\nxjBfRj+ZjeTMPxQyzhJgd/iMshdfMtOqeJs4aDexGcUYMLJtv4GYVQTQEOpS\nv7sp/giln/zDMIr6Q6vQTKvR8bZEcKfFQY6eUSdZ1MLeyzOMytstjBTWxqMO\ntDAUiPhFzYENuY3UR+Fl9DBpmC578Kfu4a1hio6je45+zW6cltNJeUYB6Br+\n5ddDObt9XjjJDpEN5wjcmBYRgcb3/p42+kp+dVsvdkqzH/oWDfZRN74m33If\nzSqqatdmp9fAurWne2PuQfFO6JYAfavyLemP9qokI4OXhQHPr5KfcB9UwXoq\ndeZ2TZanXWGtSv3K1JeoxJcBlQGeotyxut0bTRO8wvTiyjjZM96+0VqxXuQu\nhtR9\r\n=qOlj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAjn9703dmEZoB8eBoxByd4GC+4KhXTP88BF6eKMCSumAiBi14lpAJj37WsIQ7GccRA5e6dfchT55UTdonnXF9dZzw=="}]},"maintainers":[{"name":"eliabejr","email":"eliabesajunior@gmail.com"},{"name":"medson10","email":"medsonoliveira@outlook.com.br"},{"name":"gabrielrubens","email":"grsabreu@gmail.com"},{"name":"georgelima","email":"georgelima11@hotmail.com"},{"name":"guilhermedecampo","email":"guilherme.decampo@astrocoders.com"}],"_npmUser":{"name":"georgelima","email":"georgelima11@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/migrathor_1.0.0_1564168830214_0.5124275863214076"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-26T19:20:30.052Z","1.0.0":"2019-07-26T19:20:30.313Z","modified":"2022-04-04T15:54:37.040Z"},"maintainers":[{"email":"gameplayteam12@gmail.com","name":"luizmoratelli"},{"email":"yuri.fabris@gmail.com","name":"yurijean"},{"email":"lucassilvabesen@gmail.com","name":"lucasbesen"},{"email":"eliabesajunior@gmail.com","name":"eliabejr"},{"email":"medsonoliveira@outlook.com.br","name":"medson10"},{"email":"grsabreu@gmail.com","name":"gabrielrubens"},{"email":"georgelima11@hotmail.com","name":"georgelima"},{"email":"guilherme.decampo@astrocoders.com","name":"guilhermedecampo"}],"description":"Create a migrathorconfig.js file in the root directory of your project. For example:","homepage":"https://github.com/Astrocoders/migrathor#readme","repository":{"type":"git","url":"git+https://github.com/Astrocoders/migrathor.git"},"author":{"name":"Astrocoders","email":"george.lima@astrocoders.com"},"bugs":{"url":"https://github.com/Astrocoders/migrathor/issues"},"license":"MIT","readme":"### Usage\n\nCreate a migrathorconfig.js file in the root directory of your project. For example:\n\n```js\nrequire('dotenv').config()\n\nmodule.exports = {\n  host: process.env.PG_HOST,\n  port: Number(process.env.PG_PORT),\n  user: process.env.PG_USER,\n  database: process.env.PG_DATABASE,\n  password: process.env.PG_PASSWORD,\n  databaseConfigFolder: 'pgSql',\n}\n```\n\nSo you can use `yarn migrathor <cmd>`\n\n### Commands\n\n`migration` - create a new migration file in `${databaseConfigFolder}/migrations`\n\n`migrate` - run the latest migration\n\n`rollback` - undoes the last migration\n","readmeFilename":"README.md"}