Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ Detailed instructions can be found here: [Technical Onboarding](https://www.noti
touch .env
```

## Creating Migration
```node migrate create --name my-migration.ts --folder migrations```

## Authors

Erica Han
Expand Down
8 changes: 8 additions & 0 deletions backend/.sequelizerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const path = require('path');

module.exports = {
'config': path.resolve('config', 'config.js'),
'models-path': path.resolve('models'),
'seeders-path': path.resolve('seeders'),
'migrations-path': path.resolve('migrations')
};
5 changes: 5 additions & 0 deletions backend/migrate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* eslint-disable @typescript-eslint/no-require-imports */
require('dotenv').config();
require('ts-node/register');

require('./umzug').migrator.runAsCLI();
Loading