mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 18:27:16 +00:00
19 lines
391 B
PHP
19 lines
391 B
PHP
<?php
|
|
class Migrate extends CI_Controller {
|
|
|
|
public function index() {
|
|
$this->load->library('Migration');
|
|
|
|
if (!$this->migration->latest()) {
|
|
show_error($this->migration->error_string());
|
|
$result = 'error';
|
|
} else {
|
|
while (file_exists(APPPATH . 'cache/.migration_running')) {
|
|
sleep(1);
|
|
}
|
|
$result = 'success';
|
|
}
|
|
echo $result;
|
|
}
|
|
}
|