mirror of
https://github.com/spl0k/supysonic.git
synced 2024-11-12 21:22:17 +00:00
13 lines
208 B
MySQL
13 lines
208 B
MySQL
|
START TRANSACTION;
|
||
|
|
||
|
ALTER TABLE folder ADD cover_art VARCHAR(256) AFTER has_cover_art;
|
||
|
|
||
|
UPDATE folder
|
||
|
SET cover_art = 'cover.jpg'
|
||
|
WHERE has_cover_art;
|
||
|
|
||
|
ALTER TABLE folder DROP COLUMN has_cover_art;
|
||
|
|
||
|
COMMIT;
|
||
|
|