comparison config.php.sample @ 80:cce6f88590fd

add: db table updater script.
author Sushi-k <epgrec@park.mda.or.jp>
date Thu, 25 Feb 2010 17:09:36 +0900
parents cb7da56c4198
children 549d799d73ae
comparison
equal deleted inserted replaced
79:6eabffb0ccac 80:cce6f88590fd
41 0 => array( 41 0 => array(
42 'name' => 'Full TS', // モードの表示名 42 'name' => 'Full TS', // モードの表示名
43 'suffix' => '.ts', // ファイル名のサフィックス 43 'suffix' => '.ts', // ファイル名のサフィックス
44 ), 44 ),
45 45
46 /* Examples is as follows.
47
48 1 => array( 46 1 => array(
49 'name' => 'Min PID', 47 'name' => 'Minimum TS', // 最小のTS
50 'suffix' => '_tss.ts', 48 'suffix' => '_tss.ts', // do-record.shのカスタマイズが必要
51 ), 49 ),
52 50
51 /* Example is as follows.
53 2 => array( 52 2 => array(
54 'name' => '12Mbps MPEG4', 53 'name' => '12Mbps MPEG4',
55 'suffix' => '.avi', 54 'suffix' => '.avi',
56 ), 55 ),
57 */ 56 */
214 "channel_id integer not null default '0',". // channel ID 213 "channel_id integer not null default '0',". // channel ID
215 "program_id integer not null default '0',". // Program ID 214 "program_id integer not null default '0',". // Program ID
216 "type varchar(8) not null default 'GR',". // 種別(GR/BS/CS) 215 "type varchar(8) not null default 'GR',". // 種別(GR/BS/CS)
217 "channel varchar(10) not null default '0',". // チャンネル 216 "channel varchar(10) not null default '0',". // チャンネル
218 "title varchar(512) not null default 'none',". // タイトル 217 "title varchar(512) not null default 'none',". // タイトル
219 "description varchar(512) not null default ' ',". // 説明 text->varchar 218 "description varchar(512) not null default 'none',". // 説明 text->varchar
220 "category_id integer not null default '0',". // カテゴリID 219 "category_id integer not null default '0',". // カテゴリID
221 "starttime datetime not null default '1970-01-01 00:00:00',". // 開始時刻 220 "starttime datetime not null default '1970-01-01 00:00:00',". // 開始時刻
222 "endtime datetime not null default '1970-01-01 00:00:00',". // 終了時刻 221 "endtime datetime not null default '1970-01-01 00:00:00',". // 終了時刻
223 "job integer not null default '0',". // job番号 222 "job integer not null default '0',". // job番号
224 "path blob default null,". // 録画ファイルパス 223 "path blob default null,". // 録画ファイルパス
225 "complete boolean not null default '0',". // 完了フラグ 224 "complete boolean not null default '0',". // 完了フラグ
226 "reserve_disc varchar(128) not null default 'none',". // 識別用hash 225 "reserve_disc varchar(128) not null default 'none',". // 識別用hash
227 "autorec integer not null default '0',". // キーワードID 226 "autorec integer not null default '0',". // キーワードID
228 "mode integer not null default '0',". //録画モード 227 "mode integer not null default '0',". //録画モード
229 "index reserve_idx (channel_disc, starttime)" // インデックス 228 "index reserve_ch_idx (channel_disc),". // インデックス
229 "index reserve_st_idx (starttime)".
230 ""
230 ); 231 );
231 232
232 233
233 // 番組表テーブル 234 // 番組表テーブル
234 define( "PROGRAM_STRUCT", 235 define( "PROGRAM_STRUCT",
242 "category_id integer not null default '0',". // カテゴリID 243 "category_id integer not null default '0',". // カテゴリID
243 "starttime datetime not null default '1970-01-01 00:00:00',". // 開始時刻 244 "starttime datetime not null default '1970-01-01 00:00:00',". // 開始時刻
244 "endtime datetime not null default '1970-01-01 00:00:00',". // 終了時刻 245 "endtime datetime not null default '1970-01-01 00:00:00',". // 終了時刻
245 "program_disc varchar(128) not null default 'none',". // 識別用hash 246 "program_disc varchar(128) not null default 'none',". // 識別用hash
246 "autorec boolean not null default '1',". // 自動録画有効無効 247 "autorec boolean not null default '1',". // 自動録画有効無効
247 "index program_idx (channel_disc, starttime)" // インデックス 248 "index program_ch_idx (channel_disc),". // インデックス
248 249 "index program_st_idx (starttime)".
250 ""
249 ); 251 );
250 252
251 253
252 define( "CHANNEL_STRUCT", 254 define( "CHANNEL_STRUCT",
253 "id integer not null auto_increment primary key,". // ID 255 "id integer not null auto_increment primary key,". // ID
272 "type varchar(8) not null default '*',". // 種別 274 "type varchar(8) not null default '*',". // 種別
273 "channel_id integer not null default '0',". // channel ID 275 "channel_id integer not null default '0',". // channel ID
274 "category_id integer not null default '0',". // カテゴリID 276 "category_id integer not null default '0',". // カテゴリID
275 "use_regexp boolean not null default '0',". // 正規表現を使用するなら1 277 "use_regexp boolean not null default '0',". // 正規表現を使用するなら1
276 "autorec_mode integer not null default '0',". // 自動録画のモード02/23/2010追加 278 "autorec_mode integer not null default '0',". // 自動録画のモード02/23/2010追加
277 "weekofday enum ('0','1','2','3','4','5','6','7' ) default '7'" // 曜日 279 "weekofday enum ('0','1','2','3','4','5','6','7' ) default '7'" // 曜日、同追加
278 ); 280 );
279 ?> 281 ?>