fix(database): migrations to update PTP IRC channel (#1906)

* fix(database): migrations to update PTP IRC channel

* refactor(web): remove channel disable logic from IRC forms

---------

Co-authored-by: s0up4200 <s0up4200@pm.me>
This commit is contained in:
ze0s 2024-12-28 14:45:45 +01:00 committed by GitHub
parent c13844e8b0
commit 6b4f1d9f63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 20 deletions

View file

@ -1987,7 +1987,7 @@ CREATE INDEX release_hybrid_index
`,
`UPDATE irc_channel
SET name = '#ptp-announce'
WHERE name = '#ptp-announce-dev';
WHERE name = '#ptp-announce-dev' AND NOT EXISTS (SELECT 1 FROM irc_channel WHERE name = '#ptp-announce');
`,
`UPDATE irc_network
SET invite_command = REPLACE(invite_command, '#ptp-announce-dev', '#ptp-announce')