cuepoints analyzer disabled by default

This commit is contained in:
jo 2023-02-11 00:44:44 +01:00 committed by Kyle Robbertze
parent f5e46c6f3d
commit 87de25052a
7 changed files with 10 additions and 9 deletions

View File

@ -25,7 +25,7 @@ class PipelineStatus(int, Enum):
class PipelineOptions(BaseModel): class PipelineOptions(BaseModel):
analyze_cue_points: bool = True analyze_cue_points: bool = False
class Pipeline: class Pipeline:

View File

@ -5,7 +5,9 @@ from django.db import migrations
from ._migrations import legacy_migration_factory from ._migrations import legacy_migration_factory
UP = """ UP = """
alter table "cc_track_types" add column "analyze_cue_points" boolean default 't' not null; alter table "cc_track_types" add column "analyze_cue_points" boolean default 'f' not null;
update "cc_track_types" set "analyze_cue_points" = 't';
""" """
DOWN = """ DOWN = """

View File

@ -95,7 +95,7 @@ CREATE TABLE "cc_track_types"
"visibility" BOOLEAN DEFAULT 't' NOT NULL, "visibility" BOOLEAN DEFAULT 't' NOT NULL,
"type_name" VARCHAR(64) DEFAULT '' NOT NULL, "type_name" VARCHAR(64) DEFAULT '' NOT NULL,
"description" VARCHAR(255) DEFAULT '' NOT NULL, "description" VARCHAR(255) DEFAULT '' NOT NULL,
"analyze_cue_points" BOOLEAN DEFAULT 't' NOT NULL, "analyze_cue_points" BOOLEAN DEFAULT 'f' NOT NULL,
PRIMARY KEY ("id"), PRIMARY KEY ("id"),
CONSTRAINT "cc_track_types_id_idx" UNIQUE ("id"), CONSTRAINT "cc_track_types_id_idx" UNIQUE ("id"),
CONSTRAINT "cc_track_types_code_idx" UNIQUE ("code") CONSTRAINT "cc_track_types_code_idx" UNIQUE ("code")

View File

@ -55,7 +55,6 @@ class Application_Form_AddTracktype extends Zend_Form
$analyze_cue_points = new Zend_Form_Element_Checkbox('analyze_cue_points'); $analyze_cue_points = new Zend_Form_Element_Checkbox('analyze_cue_points');
$analyze_cue_points->setLabel(_('Analyze cue points:')); $analyze_cue_points->setLabel(_('Analyze cue points:'));
$analyze_cue_points->setAttrib('checked', true);
$analyze_cue_points->setRequired(true); $analyze_cue_points->setRequired(true);
$this->addElement($analyze_cue_points); $this->addElement($analyze_cue_points);

View File

@ -44,7 +44,7 @@ class CcTracktypesTableMap extends TableMap
$this->addColumn('visibility', 'DbVisibility', 'BOOLEAN', true, null, true); $this->addColumn('visibility', 'DbVisibility', 'BOOLEAN', true, null, true);
$this->addColumn('type_name', 'DbTypeName', 'VARCHAR', true, 64, ''); $this->addColumn('type_name', 'DbTypeName', 'VARCHAR', true, 64, '');
$this->addColumn('description', 'DbDescription', 'VARCHAR', true, 255, ''); $this->addColumn('description', 'DbDescription', 'VARCHAR', true, 255, '');
$this->addColumn('analyze_cue_points', 'DbAnalyzeCuePoints', 'BOOLEAN', true, null, true); $this->addColumn('analyze_cue_points', 'DbAnalyzeCuePoints', 'BOOLEAN', true, null, false);
// validators // validators
} // initialize() } // initialize()

View File

@ -65,7 +65,7 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
/** /**
* The value for the analyze_cue_points field. * The value for the analyze_cue_points field.
* Note: this column has a database default value of: true * Note: this column has a database default value of: false
* @var boolean * @var boolean
*/ */
protected $analyze_cue_points; protected $analyze_cue_points;
@ -114,7 +114,7 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
$this->visibility = true; $this->visibility = true;
$this->type_name = ''; $this->type_name = '';
$this->description = ''; $this->description = '';
$this->analyze_cue_points = true; $this->analyze_cue_points = false;
} }
/** /**
@ -361,7 +361,7 @@ abstract class BaseCcTracktypes extends BaseObject implements Persistent
return false; return false;
} }
if ($this->analyze_cue_points !== true) { if ($this->analyze_cue_points !== false) {
return false; return false;
} }

View File

@ -92,7 +92,7 @@
<column name="visibility" phpName="DbVisibility" type="BOOLEAN" required="true" defaultValue="true" /> <column name="visibility" phpName="DbVisibility" type="BOOLEAN" required="true" defaultValue="true" />
<column name="type_name" phpName="DbTypeName" type="VARCHAR" size="64" required="true" defaultValue="" /> <column name="type_name" phpName="DbTypeName" type="VARCHAR" size="64" required="true" defaultValue="" />
<column name="description" phpName="DbDescription" type="VARCHAR" size="255" required="true" defaultValue="" /> <column name="description" phpName="DbDescription" type="VARCHAR" size="255" required="true" defaultValue="" />
<column name="analyze_cue_points" phpName="DbAnalyzeCuePoints" type="BOOLEAN" required="true" defaultValue="true" /> <column name="analyze_cue_points" phpName="DbAnalyzeCuePoints" type="BOOLEAN" required="true" defaultValue="false" />
<unique name="cc_track_types_id_idx"> <unique name="cc_track_types_id_idx">
<unique-column name="id" /> <unique-column name="id" />
</unique> </unique>