Updated sql schema to include image_path in Cc_Show table

This commit is contained in:
Duncan Sommerville 2014-09-16 18:13:46 -04:00
parent 3655c261ac
commit 8494f813ee
7 changed files with 99 additions and 34 deletions

View file

@ -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/ubuntu/airtime/airtime_mvc
project.home = /home/sourcefabric/dev/Airtime-SaaS/Airtime/airtime_mvc
project.build = ${project.home}/build
#Database driver

View file

@ -136,6 +136,9 @@
<column name="is_linkable" phpName="DbIsLinkable" type="BOOLEAN" required="true" defaultValue="true" />
<!-- A show is_linkable if it has never been linked before. Once a show becomes unlinked
it can not be linked again -->
<column name="image_path" phpName="DbImagePath" type="VARCHAR" size="255" required="false" />
<!-- Fully qualified path for the image associated with this show.
Default is /path/to/stor/dir/:ownerId/show-images/:showId/imageName -->
</table>
<table name="cc_show_instances" phpName="CcShowInstances">
<column name="id" phpName="DbId" type="INTEGER" primaryKey="true" autoIncrement="true" required="true"/>

View file

@ -158,6 +158,7 @@ CREATE TABLE "cc_show"
"live_stream_pass" VARCHAR(255),
"linked" BOOLEAN default 'f' NOT NULL,
"is_linkable" BOOLEAN default 't' NOT NULL,
"image_path" VARCHAR(255),
PRIMARY KEY ("id")
);
@ -733,25 +734,6 @@ CREATE TABLE "cc_listener_count"
COMMENT ON TABLE "cc_listener_count" IS '';
SET search_path TO public;
-----------------------------------------------------------------------------
-- cc_locale
-----------------------------------------------------------------------------
DROP TABLE "cc_locale" CASCADE;
CREATE TABLE "cc_locale"
(
"id" serial NOT NULL,
"locale_code" VARCHAR(16) NOT NULL,
"locale_lang" VARCHAR(128) NOT NULL,
PRIMARY KEY ("id")
);
COMMENT ON TABLE "cc_locale" IS '';
SET search_path TO public;
-----------------------------------------------------------------------------
-- cc_playout_history