CC-4961: Show linking
Removed stamp tables
This commit is contained in:
parent
9b2fb3bece
commit
9b4a0ba9c1
43 changed files with 55 additions and 10288 deletions
|
@ -327,8 +327,7 @@
|
|||
We need to know this for logging playout history. (It only gets logged when
|
||||
broadcasted = 1)
|
||||
-->
|
||||
<column name="stamp_id" phpName="DbStampId" type="INTEGER" required="true" default="0" />
|
||||
<column name="stamp_content_id" phpName="DbStampContentId" type="INTEGER" required="true" default="0" />
|
||||
<column name="position" phpName="DbPosition" type="INTEGER" required="true" default="0" />
|
||||
<!-- This foreign key is still useful even though it may seem we don't ever delete cc_show_instances anymore.
|
||||
We will do delete them in some cases (when editing a show and changing the repeating days of the week
|
||||
for example. \
|
||||
|
@ -342,9 +341,6 @@
|
|||
<foreign-key foreignTable="cc_webstream" name="cc_show_stream_fkey" onDelete="CASCADE">
|
||||
<reference local="stream_id" foreign="id"/>
|
||||
</foreign-key>
|
||||
<!-- <foreign-key foreignTable="cc_stamp" name="cc_schedule_stamp_id_fkey" onDelete="CASCADE">
|
||||
<reference local="stamp_id" foreign="id" />
|
||||
</foreign-key> -->
|
||||
<index name="cc_schedule_instance_id_idx">
|
||||
<index-column name="instance_id"/>
|
||||
</index>
|
||||
|
@ -478,45 +474,4 @@
|
|||
<column name="locale_code" phpName="DbLocaleCode" type="VARCHAR" size="16" required="true" />
|
||||
<column name="locale_lang" phpName="DbLocaleLang" type="VARCHAR" size="128" required="true" />
|
||||
</table>
|
||||
<table name="cc_stamp_contents" phpName="CcStampContents">
|
||||
<column name="id" phpName="DbId" primaryKey="true" type="INTEGER" autoIncrement="true" required="true" />
|
||||
<column name="stamp_id" phpName="DbStampId" type="INTEGER" required="true" />
|
||||
<column name="file_id" phpName="DbFileId" type="INTEGER" required="false" />
|
||||
<column name="stream_id" phpName="DbStreamId" type="INTEGER" required="false" />
|
||||
<column name="block_id" phpName="DbBlockId" type="INTEGER" required="false" />
|
||||
<column name="playlist_id" phpName="DbPlaylistId" type="INTEGER" required="false" />
|
||||
<column name="position" phpName="DbPosition" type="INTEGER" required="false" />
|
||||
<column name="clip_length" phpName="DbClipLength" type="VARCHAR" sqlType="interval" required="false" defaultValue="00:00:00" />
|
||||
<column name="cue_in" phpName="DbCueIn" type="VARCHAR" sqlType="interval" required="false" defaultValue="00:00:00" />
|
||||
<column name="cue_out" phpName="DbCueOut" type="VARCHAR" sqlType="interval" required="false" defaultValue="00:00:00" />
|
||||
<column name="fade_in" phpName="DbFadeIn" type="VARCHAR" sqlType="interval" required="false" defaultValue="00:00:00" />
|
||||
<column name="fade_out" phpName="DbFadeOut" type="VARCHAR" sqlType="interval" required="false" defaultValue="00:00:00" />
|
||||
<foreign-key foreignTable="cc_stamp" name="cc_stamp_contents_stamp_id_fkey" onDelete="CASCADE">
|
||||
<reference local="stamp_id" foreign="id" />
|
||||
</foreign-key>
|
||||
<foreign-key foreignTable="cc_files" name="cc_stamp_contents_file_id_fkey" onDelete="CASCADE">
|
||||
<reference local="file_id" foreign="id" />
|
||||
</foreign-key>
|
||||
<foreign-key foreignTable="cc_webstream" name="cc_stamp_contents_stream_id_fkey" onDelete="CASCADE">
|
||||
<reference local="stream_id" foreign="id" />
|
||||
</foreign-key>
|
||||
<foreign-key foreignTable="cc_block" name="cc_stamp_contents_block_id_fkey" onDelete="CASCADE">
|
||||
<reference local="block_id" foreign="id" />
|
||||
</foreign-key>
|
||||
<foreign-key foreignTable="cc_playlist" name="cc_stamp_contents_playlist_id_fkey" onDelete="CASCADE">
|
||||
<reference local="playlist_id" foreign="id" />
|
||||
</foreign-key>
|
||||
</table>
|
||||
<table name="cc_stamp" phpName="CcStamp">
|
||||
<column name="id" phpName="DbId" primaryKey="true" type="INTEGER" autoIncrement="true" required="true" />
|
||||
<column name="show_id" phpName="DbShowId" type="INTEGER" required="true" />
|
||||
<column name="instance_id" phpName="DbInstanceId" type="INTEGER" required="false" />
|
||||
<column name="linked" phpName="DbLinked" type="BOOLEAN" required="true" />
|
||||
<foreign-key foreignTable="cc_show" name="cc_stamp_show_id_fkey" onDelete="CASCADE">
|
||||
<reference local="show_id" foreign="id" />
|
||||
</foreign-key>
|
||||
<foreign-key foreignTable="cc_show_instances" name="cc_stamp_instance_id_fkey" onDelete="CASCADE">
|
||||
<reference local="instance_id" foreign="id" />
|
||||
</foreign-key>
|
||||
</table>
|
||||
</database>
|
||||
|
|
|
@ -427,8 +427,7 @@ CREATE TABLE "cc_schedule"
|
|||
"instance_id" INTEGER NOT NULL,
|
||||
"playout_status" INT2 default 1 NOT NULL,
|
||||
"broadcasted" INT2 default 0 NOT NULL,
|
||||
"stamp_id" INTEGER default 0 NOT NULL,
|
||||
"stamp_content_id" INTEGER default 0 NOT NULL,
|
||||
"position" INTEGER default 0 NOT NULL,
|
||||
PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
|
@ -750,54 +749,6 @@ CREATE TABLE "cc_locale"
|
|||
COMMENT ON TABLE "cc_locale" IS '';
|
||||
|
||||
|
||||
SET search_path TO public;
|
||||
-----------------------------------------------------------------------------
|
||||
-- cc_stamp_contents
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
DROP TABLE "cc_stamp_contents" CASCADE;
|
||||
|
||||
|
||||
CREATE TABLE "cc_stamp_contents"
|
||||
(
|
||||
"id" serial NOT NULL,
|
||||
"stamp_id" INTEGER NOT NULL,
|
||||
"file_id" INTEGER,
|
||||
"stream_id" INTEGER,
|
||||
"block_id" INTEGER,
|
||||
"playlist_id" INTEGER,
|
||||
"position" INTEGER,
|
||||
"clip_length" interval default '00:00:00',
|
||||
"cue_in" interval default '00:00:00',
|
||||
"cue_out" interval default '00:00:00',
|
||||
"fade_in" interval default '00:00:00',
|
||||
"fade_out" interval default '00:00:00',
|
||||
PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
COMMENT ON TABLE "cc_stamp_contents" IS '';
|
||||
|
||||
|
||||
SET search_path TO public;
|
||||
-----------------------------------------------------------------------------
|
||||
-- cc_stamp
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
DROP TABLE "cc_stamp" CASCADE;
|
||||
|
||||
|
||||
CREATE TABLE "cc_stamp"
|
||||
(
|
||||
"id" serial NOT NULL,
|
||||
"show_id" INTEGER NOT NULL,
|
||||
"instance_id" INTEGER,
|
||||
"linked" BOOLEAN NOT NULL,
|
||||
PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
COMMENT ON TABLE "cc_stamp" IS '';
|
||||
|
||||
|
||||
SET search_path TO public;
|
||||
ALTER TABLE "cc_files" ADD CONSTRAINT "cc_files_owner_fkey" FOREIGN KEY ("owner_id") REFERENCES "cc_subjs" ("id");
|
||||
|
||||
|
@ -854,17 +805,3 @@ ALTER TABLE "cc_webstream_metadata" ADD CONSTRAINT "cc_schedule_inst_fkey" FOREI
|
|||
ALTER TABLE "cc_listener_count" ADD CONSTRAINT "cc_timestamp_inst_fkey" FOREIGN KEY ("timestamp_id") REFERENCES "cc_timestamp" ("id") ON DELETE CASCADE;
|
||||
|
||||
ALTER TABLE "cc_listener_count" ADD CONSTRAINT "cc_mount_name_inst_fkey" FOREIGN KEY ("mount_name_id") REFERENCES "cc_mount_name" ("id") ON DELETE CASCADE;
|
||||
|
||||
ALTER TABLE "cc_stamp_contents" ADD CONSTRAINT "cc_stamp_contents_stamp_id_fkey" FOREIGN KEY ("stamp_id") REFERENCES "cc_stamp" ("id") ON DELETE CASCADE;
|
||||
|
||||
ALTER TABLE "cc_stamp_contents" ADD CONSTRAINT "cc_stamp_contents_file_id_fkey" FOREIGN KEY ("file_id") REFERENCES "cc_files" ("id") ON DELETE CASCADE;
|
||||
|
||||
ALTER TABLE "cc_stamp_contents" ADD CONSTRAINT "cc_stamp_contents_stream_id_fkey" FOREIGN KEY ("stream_id") REFERENCES "cc_webstream" ("id") ON DELETE CASCADE;
|
||||
|
||||
ALTER TABLE "cc_stamp_contents" ADD CONSTRAINT "cc_stamp_contents_block_id_fkey" FOREIGN KEY ("block_id") REFERENCES "cc_block" ("id") ON DELETE CASCADE;
|
||||
|
||||
ALTER TABLE "cc_stamp_contents" ADD CONSTRAINT "cc_stamp_contents_playlist_id_fkey" FOREIGN KEY ("playlist_id") REFERENCES "cc_playlist" ("id") ON DELETE CASCADE;
|
||||
|
||||
ALTER TABLE "cc_stamp" ADD CONSTRAINT "cc_stamp_show_id_fkey" FOREIGN KEY ("show_id") REFERENCES "cc_show" ("id") ON DELETE CASCADE;
|
||||
|
||||
ALTER TABLE "cc_stamp" ADD CONSTRAINT "cc_stamp_instance_id_fkey" FOREIGN KEY ("instance_id") REFERENCES "cc_show_instances" ("id") ON DELETE CASCADE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue