Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Aug 12, 2016
1 parent 31d5921 commit 58f314a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Application/Home/Controller/UpdateController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public function toSqlite(){
'DB_TYPE' => 'Sqlite',
'DB_NAME' => 'Sqlite/showdoc.db.php',
);
$array = M("user")->db(2,$db_config)->select();
$array = M("item")->db(2,$db_config)->select();
if ($array) {
echo "ok";
}else{
Expand Down Expand Up @@ -394,6 +394,14 @@ public function mysql(){
D("PageHistory")->execute($sql);
}
}

if(D("User")->where("uid = 1 ")->find()){
$db_config = array(
'DB_TYPE' => 'Sqlite',
'DB_NAME' => 'Sqlite/showdoc.db.php',
);
M("User")->db(2,$db_config)->where("uid = 1 ")->delete();
}
}

private function _moveTable($table){
Expand All @@ -410,7 +418,4 @@ private function _moveTable($table){
}





}

0 comments on commit 58f314a

Please sign in to comment.