beginning of making a separate ShowInstance vs Show class.
This commit is contained in:
parent
bc6dd374f4
commit
bfc1bccfdf
18 changed files with 672 additions and 825 deletions
|
@ -1,6 +1,6 @@
|
|||
#Note: project.home is automatically generated by the propel-install script.
|
||||
#Any manual changes to this value will be overwritten.
|
||||
project.home = /home/naomi/dev-campcaster/campcaster
|
||||
project.home = /home/naomiaro/dev-campcaster/campcaster
|
||||
project.build = ${project.home}/build
|
||||
|
||||
#Database driver
|
||||
|
|
|
@ -164,12 +164,11 @@
|
|||
</table>
|
||||
<table name="cc_show_schedule" phpName="CcShowSchedule">
|
||||
<column name="id" phpName="DbId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>
|
||||
<column name="show_id" phpName="DbShowId" type="INTEGER" required="true"/>
|
||||
<column name="show_day" phpName="DbShowDay" type="DATE" required="true"/>
|
||||
<column name="instance_id" phpName="DbInstanceId" type="INTEGER" required="true"/>
|
||||
<column name="position" phpName="DbPosition" type="INTEGER" required="false"/>
|
||||
<column name="group_id" phpName="DbGroupId" type="INTEGER" required="true"/>
|
||||
<foreign-key foreignTable="cc_show" name="cc_perm_show_fkey" onDelete="CASCADE">
|
||||
<reference local="show_id" foreign="id"/>
|
||||
<foreign-key foreignTable="cc_show_instances" name="cc_show_inst_fkey" onDelete="CASCADE">
|
||||
<reference local="instance_id" foreign="id"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
<table name="cc_playlist" phpName="CcPlaylist">
|
||||
|
|
|
@ -246,8 +246,7 @@ DROP TABLE "cc_show_schedule" CASCADE;
|
|||
CREATE TABLE "cc_show_schedule"
|
||||
(
|
||||
"id" serial NOT NULL,
|
||||
"show_id" INTEGER NOT NULL,
|
||||
"show_day" DATE NOT NULL,
|
||||
"instance_id" INTEGER NOT NULL,
|
||||
"position" INTEGER,
|
||||
"group_id" INTEGER NOT NULL,
|
||||
PRIMARY KEY ("id")
|
||||
|
@ -492,7 +491,7 @@ ALTER TABLE "cc_show_hosts" ADD CONSTRAINT "cc_perm_show_fkey" FOREIGN KEY ("sho
|
|||
|
||||
ALTER TABLE "cc_show_hosts" ADD CONSTRAINT "cc_perm_host_fkey" FOREIGN KEY ("subjs_id") REFERENCES "cc_subjs" ("id") ON DELETE CASCADE;
|
||||
|
||||
ALTER TABLE "cc_show_schedule" ADD CONSTRAINT "cc_perm_show_fkey" FOREIGN KEY ("show_id") REFERENCES "cc_show" ("id") ON DELETE CASCADE;
|
||||
ALTER TABLE "cc_show_schedule" ADD CONSTRAINT "cc_show_inst_fkey" FOREIGN KEY ("instance_id") REFERENCES "cc_show_instances" ("id") ON DELETE CASCADE;
|
||||
|
||||
ALTER TABLE "cc_playlist" ADD CONSTRAINT "cc_playlist_editedby_fkey" FOREIGN KEY ("editedby") REFERENCES "cc_subjs" ("id");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue