Skip to content

Commit

Permalink
Fix #252 migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
spl0k committed Apr 2, 2023
1 parent 639c682 commit 62f921d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
6 changes: 1 addition & 5 deletions supysonic/schema/migration/mysql/20230331.sql
Original file line number Diff line number Diff line change
@@ -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';
6 changes: 1 addition & 5 deletions supysonic/schema/migration/postgres/20230331.sql
Original file line number Diff line number Diff line change
@@ -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';
7 changes: 0 additions & 7 deletions supysonic/schema/migration/sqlite/20230331.sql
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 62f921d

Please sign in to comment.