CC-2559 : Remove files from cc_schedule that are no longer watched
adding foreign key to file_id column of cc_schedule table.
This commit is contained in:
parent
4588ebd105
commit
b7819211ac
11 changed files with 808 additions and 2 deletions
|
@ -263,6 +263,9 @@
|
|||
<foreign-key foreignTable="cc_show_instances" name="cc_show_inst_fkey" onDelete="CASCADE">
|
||||
<reference local="instance_id" foreign="id"/>
|
||||
</foreign-key>
|
||||
<foreign-key foreignTable="cc_files" name="cc_show_file_fkey" onDelete="CASCADE">
|
||||
<reference local="file_id" foreign="id"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
<table name="cc_sess" phpName="CcSess">
|
||||
<column name="sessid" phpName="Sessid" type="CHAR" size="32" primaryKey="true" required="true"/>
|
||||
|
@ -310,6 +313,6 @@
|
|||
</table>
|
||||
<table name="cc_country" phpName="CcCountry">
|
||||
<column name="isocode" phpName="DbIsoCode" primaryKey="true" type="CHAR" size="3" required="true"/>
|
||||
<column name="name" phpName="DbName" type="VARCHAR" size="255" required="true"/>
|
||||
<column name="name" phpName="DbName" type="VARCHAR" size="255" required="true"/>
|
||||
</table>
|
||||
</database>
|
||||
|
|
|
@ -493,4 +493,6 @@ ALTER TABLE "cc_pref" ADD CONSTRAINT "cc_pref_subjid_fkey" FOREIGN KEY ("subjid"
|
|||
|
||||
ALTER TABLE "cc_schedule" ADD CONSTRAINT "cc_show_inst_fkey" FOREIGN KEY ("instance_id") REFERENCES "cc_show_instances" ("id") ON DELETE CASCADE;
|
||||
|
||||
ALTER TABLE "cc_schedule" ADD CONSTRAINT "cc_show_file_fkey" FOREIGN KEY ("file_id") REFERENCES "cc_files" ("id") ON DELETE CASCADE;
|
||||
|
||||
ALTER TABLE "cc_sess" ADD CONSTRAINT "cc_sess_userid_fkey" FOREIGN KEY ("userid") REFERENCES "cc_subjs" ("id") ON DELETE CASCADE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue