fix: correct cc_file.artwork column size

This commit is contained in:
jo 2022-02-27 16:38:12 +01:00 committed by Kyle Robbertze
parent 6889e11a91
commit 980f1acd0c
5 changed files with 27 additions and 4 deletions

View file

@ -0,0 +1,23 @@
from django.db import migrations
from ._migrations import legacy_migration_factory
UP = """
ALTER TABLE cc_files ALTER COLUMN artwork TYPE VARCHAR(4096);
"""
DOWN = None
class Migration(migrations.Migration):
dependencies = [
("legacy", "0027_3_0_0_alpha_13_1"),
]
operations = [
migrations.RunPython(
code=legacy_migration_factory(
target="3.0.0-alpha.13.2",
sql=UP,
)
)
]

View file

@ -1 +1 @@
LEGACY_SCHEMA_VERSION = "3.0.0-alpha.13.1"
LEGACY_SCHEMA_VERSION = "3.0.0-alpha.13.2"

View file

@ -91,7 +91,7 @@ CREATE TABLE "cc_files"
"is_playlist" BOOLEAN DEFAULT 'f',
"filesize" INTEGER DEFAULT 0 NOT NULL,
"description" VARCHAR(512),
"artwork" VARCHAR(512),
"artwork" VARCHAR(4096),
"track_type" VARCHAR(16),
PRIMARY KEY ("id")
);