new MigrationVersion Model

这个提交包含在:
HB9HIL 2023-11-12 15:34:48 +01:00
父节点 2bab8a9633
当前提交 8e3f2e8d6e

查看文件

@ -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;
}
}
}
?>