repo move migration

This commit is contained in:
cutestnekoaqua 2022-12-18 19:41:11 +01:00
parent 944eadca8f
commit 206381c220
No known key found for this signature in database
GPG Key ID: 6BF0964A5069C1E0
4 changed files with 18 additions and 3 deletions

View File

@ -14,4 +14,4 @@ matrix:
- 19.2.0
branches:
include: [ master, develop, feature/* ]
include: [ main, develop, feature/* ]

View File

@ -24,4 +24,4 @@ matrix:
- latest
branches:
include: [ master, develop, feature/* ]
include: [ main, develop, feature/* ]

View File

@ -8,4 +8,4 @@ pipeline:
no_push: true
branches:
include: [ master, develop ]
include: [ main, develop ]

View File

@ -0,0 +1,15 @@
/* "CalckeyRepoMove1671388343000" is a class that updates the "useStarForReactionFallback" column in
the "meta" table to TRUE */
export class CalckeyRepoMove1671388343000 {
name = 'CalckeyRepoMove1671388343000'
async up(queryRunner) {
await queryRunner.query(`UPDATE meta SET "repositoryUrl" = 'https://codeberg/calckey/calckey'`);
await queryRunner.query(`UPDATE meta SET "feedbackUrl" = 'https://codeberg/calckey/calckey/issues'`);
}
async down(queryRunner) {
await queryRunner.query(`UPDATE meta SET "repositoryUrl" = 'https://codeberg/calckey/calckey'`);
await queryRunner.query(`UPDATE meta SET "feedbackUrl" = 'https://codeberg/calckey/calckey/issues'`);
}
}