| 1 |
<?php |
<?php |
| 2 |
|
|
| 3 |
// $Id: station_schedule.install,v 1.25 2009/06/02 16:56:52 drewish Exp $ |
// $Id: station_schedule.install,v 1.26 2009/08/29 08:01:43 drewish Exp $ |
| 4 |
|
|
| 5 |
/** |
/** |
| 6 |
* Implementation of hook_schema(). |
* Implementation of hook_schema(). |
| 120 |
* Implementation of hook_schema(). |
* Implementation of hook_schema(). |
| 121 |
*/ |
*/ |
| 122 |
function station_schedule_schema() { |
function station_schedule_schema() { |
|
// CREATE TABLE {station_schedule} ( |
|
|
// `nid` int unsigned NOT NULL default '0', |
|
|
// `increment` int unsigned NOT NULL default '0', |
|
|
// `streams` longtext, |
|
|
// `unscheduled_message` VARCHAR(255) NOT NULL default '', |
|
|
// PRIMARY KEY(`nid`) |
|
|
// ) /*!40100 DEFAULT CHARACTER SET utf8 */; |
|
|
//"); |
|
| 123 |
$schema['station_schedule'] = array( |
$schema['station_schedule'] = array( |
| 124 |
'description' => t('Information about station schedules.'), |
'description' => t('Information about station schedules.'), |
| 125 |
'fields' => array( |
'fields' => array( |
| 155 |
'primary key' => array('nid'), |
'primary key' => array('nid'), |
| 156 |
); |
); |
| 157 |
|
|
|
// CREATE TABLE {station_schedule_item} ( |
|
|
// `iid` int unsigned NOT NULL default '0', |
|
|
// `schedule_nid` int unsigned NOT NULL default '0', |
|
|
// `program_nid` int unsigned NOT NULL default '0', |
|
|
// `start` int unsigned NOT NULL default '0', |
|
|
// `finish` int unsigned NOT NULL default '0', |
|
|
// `may_archive` tinyint NOT NULL default '1', |
|
|
// PRIMARY KEY (`iid`), |
|
|
// KEY `station_schedule_start` (`schedule_nid`, `start`), |
|
|
// KEY `station_schedule_program` (`schedule_nid`, `program_nid`) |
|
|
// ) /*!40100 DEFAULT CHARACTER SET utf8 */; |
|
|
//"); |
|
| 158 |
$schema['station_schedule_item'] = array( |
$schema['station_schedule_item'] = array( |
| 159 |
'description' => t('Information about station schedules.'), |
'description' => t('Information about station schedules.'), |
| 160 |
'fields' => array( |
'fields' => array( |