Remove DROP FUNCTION IF EXISTS from Genre update

This commit is contained in:
2025-10-25 21:33:29 +02:00
parent 4625adb6a4
commit 35dc3cbf6f

View File

@@ -830,7 +830,6 @@ impl Update for Genre {
async fn before_update(client: &Client) -> Result<(), Box<tokio_postgres::Error>> {
match client.execute(
"
DROP FUNCTION IF EXISTS update_genre(smallint, integer, character varying, character varying, character varying);
CREATE OR REPLACE FUNCTION update_genre(
source_ smallint, remote_id_ int, code_ varchar, description_ varchar, meta_ varchar
) RETURNS void AS $$