Update .gitignore and drop update_genre first

This commit is contained in:
2025-10-25 21:01:11 +02:00
parent 65e23787f1
commit 4625adb6a4
2 changed files with 3 additions and 1 deletions

3
.gitignore vendored
View File

@@ -1,2 +1,3 @@
/target /target
.vscode /.vscode
/bruno

View File

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