COSC481W-2022Winter / capstone-hackmcx

capstone-hackmcx created by GitHub Classroom
0 stars 1 forks source link

fix: Fix Race Condition in DB Migration Runner #27

Closed 3dxp closed 2 years ago

3dxp commented 2 years ago

This change moves the code to promises that can be awaited to make sure the schema is present before the migrations actually run for the app. The app name is also taken from the configuration env file instead of being hard coded to make sure everything runs successfully.

26