(MigrationClass: Constructor<Migration>, name: string)
| 471 | } |
| 472 | |
| 473 | protected initialize(MigrationClass: Constructor<Migration>, name: string): RunnableMigration { |
| 474 | const instance = new MigrationClass(this.driver, this.config); |
| 475 | |
| 476 | return { |
| 477 | name: this.storage.getMigrationName(name), |
| 478 | up: afterRun => this.runner.run(instance, 'up', afterRun), |
| 479 | down: afterRun => this.runner.run(instance, 'down', afterRun), |
| 480 | }; |
| 481 | } |
| 482 | |
| 483 | /** |
| 484 | * Checks if `src` folder exists, it so, tries to adjust the migrations and seeders paths automatically to use it. |
nothing calls this directly
no test coverage detected