From 62f921d05f8c7995f9affc15d345d71ffc419664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alban=20F=C3=A9ron?= Date: Sun, 2 Apr 2023 16:00:56 +0200 Subject: [PATCH] Fix #252 migrations --- supysonic/schema/migration/mysql/20230331.sql | 6 +----- supysonic/schema/migration/postgres/20230331.sql | 6 +----- supysonic/schema/migration/sqlite/20230331.sql | 7 ------- 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/supysonic/schema/migration/mysql/20230331.sql b/supysonic/schema/migration/mysql/20230331.sql index 030a7bf..0c92526 100644 --- a/supysonic/schema/migration/mysql/20230331.sql +++ b/supysonic/schema/migration/mysql/20230331.sql @@ -1,5 +1 @@ -START TRANSACTION; - -UPDATE track SET bitrate=bitrate/1000 WHERE bitrate > 16000 AND path NOT LIKE '%.wav'; - -COMMIT; +UPDATE track SET bitrate=bitrate/1000 WHERE bitrate > 16000 AND path NOT LIKE '%%.wav'; diff --git a/supysonic/schema/migration/postgres/20230331.sql b/supysonic/schema/migration/postgres/20230331.sql index 030a7bf..0c92526 100644 --- a/supysonic/schema/migration/postgres/20230331.sql +++ b/supysonic/schema/migration/postgres/20230331.sql @@ -1,5 +1 @@ -START TRANSACTION; - -UPDATE track SET bitrate=bitrate/1000 WHERE bitrate > 16000 AND path NOT LIKE '%.wav'; - -COMMIT; +UPDATE track SET bitrate=bitrate/1000 WHERE bitrate > 16000 AND path NOT LIKE '%%.wav'; diff --git a/supysonic/schema/migration/sqlite/20230331.sql b/supysonic/schema/migration/sqlite/20230331.sql index 45e7b22..fec93d4 100644 --- a/supysonic/schema/migration/sqlite/20230331.sql +++ b/supysonic/schema/migration/sqlite/20230331.sql @@ -1,8 +1 @@ -COMMIT; -PRAGMA foreign_keys = OFF; -BEGIN TRANSACTION; - UPDATE track SET bitrate=bitrate/1000 WHERE bitrate > 16000 AND path NOT LIKE '%.wav'; - -COMMIT; -BEGIN TRANSACTION;