fix(indexers): PTP update IRC channel (#1889)

* fix(indexers): PTP update IRC channel

* fix(database): add migrations for PTP IRC channel update

* fix(database): update PTP IRC channel references in invite commands

---------

Co-authored-by: s0up4200 <s0up4200@pm.me>
This commit is contained in:
ze0s 2024-12-25 22:51:01 +01:00 committed by GitHub
parent 4009554d10
commit 2c0672f4bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 18 additions and 2 deletions

View file

@ -1339,5 +1339,13 @@ CREATE INDEX release_cut_index
CREATE INDEX release_hybrid_index
ON "release" (hybrid);
`,
`UPDATE irc_channel
SET name = '#ptp-announce'
WHERE name = '#ptp-announce-dev';
UPDATE irc_network
SET invite_command = REPLACE(invite_command, '#ptp-announce-dev', '#ptp-announce')
WHERE invite_command LIKE '%#ptp-announce-dev%';
`,
}

View file

@ -1984,5 +1984,13 @@ CREATE INDEX release_cut_index
CREATE INDEX release_hybrid_index
ON "release" (hybrid);
`,
`UPDATE irc_channel
SET name = '#ptp-announce'
WHERE name = '#ptp-announce-dev';
`,
`UPDATE irc_network
SET invite_command = REPLACE(invite_command, '#ptp-announce-dev', '#ptp-announce')
WHERE invite_command LIKE '%#ptp-announce-dev%';
`,
}