치명적 오류:: DB 마이그레이션에 실패 했습니다.
$this->connID->next_result();if ($res = $this->connID->store_result()) {$res->free();}}try {return $this->connID->query($this->prepQuery($sql), $this->resultMode);} catch (mysqli_sql_exception $e) {log_message('error', $e->getMessage());if ($this->DBDebug) {throw $e;}}
-rw-rw-r-- 997 994 17.5KB Oct 13 2022 /home_awb/dev/system/Database/MySQLi/Connection.php
$this->connID->next_result();if ($res = $this->connID->store_result()) {$res->free();}}try {return $this->connID->query($this->prepQuery($sql), $this->resultMode);} catch (mysqli_sql_exception $e) {log_message('error', $e->getMessage());if ($this->DBDebug) {throw $e;}}
*/public function simpleQuery(string $sql){if (empty($this->connID)) {$this->initialize();}return $this->execute($sql);}/*** Disable Transactions** This permits transactions to be disabled at run-time.*/
$startTime = microtime(true);// Always save the last query so we can use// the getLastQuery() method.$this->lastQuery = $query;// Run the query for realif (! $this->pretend && false === ($this->resultID = $this->simpleQuery($query->getQuery()))) {$query->setDuration($startTime, $startTime);// This will trigger a rollback if transactions are being usedif ($this->transDepth !== 0) {$this->transStatus = false;}
}return false;}if ($sqls !== null) {foreach ($sqls as $sql) {if ($this->db->query($sql) === false) {return false;}}}return true;}
/* ******************** 성공 ******************** */public function up(){//비밀글 모두 설정 추가$this->forge->modifyColumn('TB_BOARD_SETUP',['use_secret'=>['type'=>'ENUM','constraint'=>['Y','N','ALL'],'default'=>'Y','comment' => '비밀글 사용',],]);//새글 기준일 추가
return false;}throw new RuntimeException($message);}$instance->{$direction}();return true;}}
foreach ($this->getHistory((string) $group) as $history) {unset($migrations[$this->getObjectUid($history)]);}$batch = $this->getLastBatch() + 1;foreach ($migrations as $migration) {if ($this->migrate('up', $migration)) {if ($this->groupSkip === true) {$this->groupSkip = false;continue;}$this->addHistory($migration, $batch);
Events::on('DBQuery', 'CodeIgniter\Debug\Toolbar\Collectors\Database::collect');Services::toolbar()->respond();}## DB마이그레이션$migrate = \Config\Services::migrations();try{$migrate->latest();} catch (\Throwable $e){d('치명적 오류:: DB 마이그레이션에 실패 했습니다.');d('관리자에게 문의 바랍니다.');dd($e);}});
}$listeners = static::listeners($eventName);foreach ($listeners as $listener) {$start = microtime(true);$result = static::$simulate === false ? $listener(...$arguments) : true;if (CI_DEBUG) {static::$performanceLog[] = ['start' => $start,'end' => microtime(true),'event' => strtolower($eventName),];
if ($this->request instanceof IncomingRequest && $this->request->getMethod() === 'cli') {$this->response->setStatusCode(405)->setBody('Method Not Allowed');return $this->sendResponse();}Events::trigger('pre_system');// Check for a cached page. Execution will stop// if the page has been cached.$cacheConfig = new Cache();$response = $this->displayCache($cacheConfig);if ($response instanceof ResponseInterface) {if ($returnResponse) {
/**---------------------------------------------------------------* LAUNCH THE APPLICATION*---------------------------------------------------------------* Now that everything is setup, it's time to actually fire* up the engines and make this app do its thang.*/$app->run();