new MigrationVersion Model
这个提交包含在:
父节点
2bab8a9633
当前提交
8e3f2e8d6e
共有 1 个文件被更改,包括 20 次插入 和 0 次删除
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
class MigrationVersion extends CI_Model {
|
||||
|
||||
function getMigrationVersion() {
|
||||
$this->db->select_max('version');
|
||||
$query = $this->db->get('migrations');
|
||||
$migration_version = $query->row();
|
||||
|
||||
if ($query->num_rows() == 1) {
|
||||
$migration_version = $query->row()->version;
|
||||
return $migration_version;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
正在加载…
在新工单中引用