fix: correct cc_file.artwork column size
This commit is contained in:
parent
6889e11a91
commit
980f1acd0c
|
@ -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,
|
||||
)
|
||||
)
|
||||
]
|
|
@ -1 +1 @@
|
|||
LEGACY_SCHEMA_VERSION = "3.0.0-alpha.13.1"
|
||||
LEGACY_SCHEMA_VERSION = "3.0.0-alpha.13.2"
|
||||
|
|
|
@ -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")
|
||||
);
|
||||
|
|
|
@ -106,7 +106,7 @@ class CcFilesTableMap extends TableMap
|
|||
$this->addColumn('is_playlist', 'DbIsPlaylist', 'BOOLEAN', false, null, false);
|
||||
$this->addColumn('filesize', 'DbFilesize', 'INTEGER', true, null, 0);
|
||||
$this->addColumn('description', 'DbDescription', 'VARCHAR', false, 512, null);
|
||||
$this->addColumn('artwork', 'DbArtwork', 'VARCHAR', false, 512, null);
|
||||
$this->addColumn('artwork', 'DbArtwork', 'VARCHAR', false, 4096, null);
|
||||
$this->addColumn('track_type', 'DbTrackType', 'VARCHAR', false, 16, null);
|
||||
// validators
|
||||
} // initialize()
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
<column name="is_playlist" phpName="DbIsPlaylist" type="BOOLEAN" defaultValue="false" />
|
||||
<column name="filesize" phpName="DbFilesize" type="Integer" required="true" defaultValue="0" />
|
||||
<column name="description" phpName="DbDescription" type="VARCHAR" size="512" />
|
||||
<column name="artwork" phpName="DbArtwork" type="VARCHAR" size="512" required="false" />
|
||||
<column name="artwork" phpName="DbArtwork" type="VARCHAR" size="4096" required="false" />
|
||||
<column name="track_type" phpName="DbTrackType" type="VARCHAR" size="16" required="false" />
|
||||
<foreign-key foreignTable="cc_subjs" phpName="FkOwner" name="cc_files_owner_fkey">
|
||||
<reference local="owner_id" foreign="id" />
|
||||
|
|
Loading…
Reference in New Issue