1
0
Fork 1
mirror of https://example.com synced 2024-11-26 19:46:40 +09:00
firefish/packages/backend/migration/1679269929000-fix-repo.js

22 lines
592 B
JavaScript
Raw Normal View History

2023-03-20 08:53:49 +09:00
export class FixRepo1679269929000 {
2023-04-07 10:56:46 +09:00
name = "FixRepo1679269929000";
2023-03-20 08:53:49 +09:00
async up(queryRunner) {
2023-04-07 10:56:46 +09:00
await queryRunner.query(
2023-07-03 07:18:30 +09:00
`UPDATE meta SET "repositoryUrl" = 'https://codeberg.org/firefish/firefish'`,
2023-04-07 10:56:46 +09:00
);
await queryRunner.query(
2023-07-03 07:18:30 +09:00
`UPDATE meta SET "feedbackUrl" = 'https://codeberg.org/firefish/firefish/issues'`,
2023-04-07 10:56:46 +09:00
);
2023-03-20 08:53:49 +09:00
}
async down(queryRunner) {
2023-04-07 10:56:46 +09:00
await queryRunner.query(
2023-07-03 07:18:30 +09:00
`UPDATE meta SET "repositoryUrl" = 'https://codeberg.org/firefish/firefish'`,
2023-04-07 10:56:46 +09:00
);
await queryRunner.query(
2023-07-03 07:18:30 +09:00
`UPDATE meta SET "feedbackUrl" = 'https://codeberg.org/firefish/firefish/issues'`,
2023-04-07 10:56:46 +09:00
);
2023-03-20 08:53:49 +09:00
}
}