Mercurial > epgrec.yaz
comparison upgrade_db.php @ 156:0283c2c75147
fix: バグ発見、修正
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Tue, 30 Mar 2010 11:21:16 +0900 |
parents | 481e789605e3 |
children |
comparison
equal
deleted
inserted
replaced
154:64b60603d7df | 156:0283c2c75147 |
---|---|
64 "alter table ".$settings->tbl_prefix.RESERVE_TBL." modify reserve_disc varchar(128) not null default 'none';", // 茘ョhash | 64 "alter table ".$settings->tbl_prefix.RESERVE_TBL." modify reserve_disc varchar(128) not null default 'none';", // 茘ョhash |
65 "alter table ".$settings->tbl_prefix.RESERVE_TBL." modify autorec integer not null default '0';", // 若若ID | 65 "alter table ".$settings->tbl_prefix.RESERVE_TBL." modify autorec integer not null default '0';", // 若若ID |
66 "alter table ".$settings->tbl_prefix.RESERVE_TBL." modify mode integer not null default '0';", //牙祉≪若 | 66 "alter table ".$settings->tbl_prefix.RESERVE_TBL." modify mode integer not null default '0';", //牙祉≪若 |
67 ); | 67 ); |
68 | 68 |
69 if( index_exists( $settings->tbl_prefix.RESERVE_TBL, "dirty", $dbh) ) { | 69 if( column_exists( $settings->tbl_prefix.RESERVE_TBL, "dirty", $dbh) ) { |
70 echo "dirtyc若с絖篏障\n"; | 70 echo "dirtyc若с絖篏障\n"; |
71 } | 71 } |
72 else { | 72 else { |
73 array_push( $sqlstrs, "alter table ".$settings->tbl_prefix.RESERVE_TBL." add dirty boolean not null default '0';" ); | 73 array_push( $sqlstrs, "alter table ".$settings->tbl_prefix.RESERVE_TBL." add dirty boolean not null default '0';" ); |
74 } | 74 } |