Express.js Migrations
JS
S
JavaScriptTypescript migrations for backend services
1// src/migrations/update-logos.ts
2class UpdateLogos {
3 async start() {
4
5}
6export default UpdateLogos;
7
8// server.ts
9if(process.env.MIGRATIONS) {
10 this.lazyLoadMigrationModules();
11}
12public lazyLoadMigrationModules = async () => {
13 // const lib = await import('../migrations/update-logos');
14 // const obj = new lib.default();
15 // obj.start();
16};Created on 8/24/2021