Database Migration Self Service System using TypeORM, no server required!
Run locally, no need to deploy on a server.
- Clone the repo
- Run
pnpm i
- Run any of the migration command in package.json
- Modify the .env file with your cred
- Remove the Sample Migration File
- Running any command would create a new table called
migrations
which TypeOrm uses to keep track of migrations thats been ran.
- Run
pnpm migration:generate
. - You can then edit that migration script.
- Add a up() function which is used to rollout the migration.
- Add a down() function which is used to rollback the migration.
If you like this project and want to support it, you can buy me a coffee: