feat: configure cue points analysis per track type
This commit is contained in:
parent
3a9ca109c3
commit
f5e46c6f3d
22 changed files with 246 additions and 42 deletions
|
@ -0,0 +1,27 @@
|
|||
# pylint: disable=invalid-name
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
from ._migrations import legacy_migration_factory
|
||||
|
||||
UP = """
|
||||
alter table "cc_track_types" add column "analyze_cue_points" boolean default 't' not null;
|
||||
"""
|
||||
|
||||
DOWN = """
|
||||
alter table "cc_track_types" drop column if exists "analyze_cue_points";
|
||||
"""
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("legacy", "0043_remove_cors_preference"),
|
||||
]
|
||||
operations = [
|
||||
migrations.RunPython(
|
||||
code=legacy_migration_factory(
|
||||
target="44",
|
||||
sql=UP,
|
||||
)
|
||||
)
|
||||
]
|
|
@ -1,2 +1,2 @@
|
|||
# The schema version is defined using the migration file prefix number
|
||||
LEGACY_SCHEMA_VERSION = "43"
|
||||
LEGACY_SCHEMA_VERSION = "44"
|
||||
|
|
|
@ -95,6 +95,7 @@ CREATE TABLE "cc_track_types"
|
|||
"visibility" BOOLEAN DEFAULT 't' NOT NULL,
|
||||
"type_name" VARCHAR(64) DEFAULT '' NOT NULL,
|
||||
"description" VARCHAR(255) DEFAULT '' NOT NULL,
|
||||
"analyze_cue_points" BOOLEAN DEFAULT 't' NOT NULL,
|
||||
PRIMARY KEY ("id"),
|
||||
CONSTRAINT "cc_track_types_id_idx" UNIQUE ("id"),
|
||||
CONSTRAINT "cc_track_types_code_idx" UNIQUE ("code")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue