Switch to TypeORM's DataSource API #299

Merged
Vylpes merged 5 commits from feature/297-stage-deployment into develop 2023-05-26 17:59:22 +01:00
Owner
  • Switch to TypeORM's DataSource API, rather than using the now deprecated ormconfig.json
  • This will fix stage deployment not knowing how to deploy the database migrations

#297

NOTE: This change requires the deployment scripts to be updated, please update them on the server before merging

- Switch to TypeORM's DataSource API, rather than using the now deprecated ormconfig.json - This will fix stage deployment not knowing how to deploy the database migrations #297 > **NOTE:** This change requires the deployment scripts to be updated, please update them on the server before merging
Vylpes added 4 commits 2023-05-17 18:49:38 +01:00
Switch to DataSource
Some checks failed
continuous-integration/drone/push Build is failing
9ebc8a8991
Update db:up yarn command
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
818c527ab2
Vylpes requested review from VylpesTester 2023-05-17 18:49:44 +01:00
Vylpes added the
type
incident
label 2023-05-17 18:49:54 +01:00
Vylpes added this to the 3.1 milestone 2023-05-17 18:49:59 +01:00
VylpesTester was assigned by Vylpes 2023-05-17 18:50:05 +01:00
VylpesTester requested changes 2023-05-20 15:17:19 +01:00
@ -45,3 +45,1 @@
console.error(e);
return;
});
AppDataSource.initialize()
Member

I think this should be awaited, or at least put the rest of the function in the .then()

I think this should be awaited, or at least put the rest of the function in the .then()
Vylpes marked this conversation as resolved
Vylpes added 1 commit 2023-05-22 18:12:42 +01:00
Await datasource initialisation
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
90eeba834c
Vylpes requested review from VylpesTester 2023-05-23 18:41:50 +01:00
VylpesTester approved these changes 2023-05-26 17:57:53 +01:00
Vylpes merged commit e6c845e3b2 into develop 2023-05-26 17:59:22 +01:00
Vylpes deleted branch feature/297-stage-deployment 2023-05-26 17:59:22 +01:00
VylpesTester added spent time 2023-05-27 14:29:49 +01:00
5 minutes
Vylpes removed this from the 3.1 milestone 2023-06-22 17:48:14 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Total time spent: 5 minutes
VylpesTester
5 minutes
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: RabbitLabs/vylbot-app#299
No description provided.