Skip to content

Commit

Permalink
fix: vmimi relay url migration is not applied for newly created insta…
Browse files Browse the repository at this point in the history
…nces
  • Loading branch information
anatawa12 committed May 25, 2024
1 parent d67057c commit 2147026
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ export class RepositoryUrlVmimiRelayTimeline1716641282089 {

async up(queryRunner) {
await queryRunner.query(`UPDATE "meta" SET "repositoryUrl" = 'https://github.com/anatawa12/misskey/tree/vmimi-relay-timeline-releases?tab=readme-ov-file#vmimi-relay-timeline'`);
await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "repositoryUrl" SET DEFAULT 'https://github.com/anatawa12/misskey/tree/vmimi-relay-timeline-releases?tab=readme-ov-file#vmimi-relay-timeline'`);
}

async down(queryRunner) {
// no valid down migration
// no valid down migration for repositoryUrl value
await queryRunner.query(`ALTER TABLE "meta" ALTER COLUMN "repositoryUrl" SET DEFAULT 'https://github.com/misskey-dev/misskey'`);
}
}
2 changes: 1 addition & 1 deletion packages/backend/src/models/Meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export class MiMeta {

@Column('varchar', {
length: 1024,
default: 'https://github.com/misskey-dev/misskey',
default: 'https://github.com/anatawa12/misskey/tree/vmimi-relay-timeline-releases?tab=readme-ov-file#vmimi-relay-timeline',
nullable: true,
})
public repositoryUrl: string | null;
Expand Down

0 comments on commit 2147026

Please sign in to comment.