mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
fix upgrade attendance & change to v1.6.0
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.6.0-beta14');
|
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.6.0');
|
||||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-03-04');
|
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-03-08');
|
||||||
defined('IN_TRACKER') || define('IN_TRACKER', true);
|
defined('IN_TRACKER') || define('IN_TRACKER', true);
|
||||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||||
|
|||||||
@@ -133,9 +133,15 @@ class Update extends Install
|
|||||||
*
|
*
|
||||||
* attendance change, do migrate
|
* attendance change, do migrate
|
||||||
*/
|
*/
|
||||||
if (WITH_LARAVEL && !NexusDB::schema()->hasColumn('attendance', 'total_days')) {
|
if (WITH_LARAVEL) {
|
||||||
$this->runMigrate('database/migrations/2021_06_13_215440_add_total_days_to_attendance_table.php');
|
if (!NexusDB::schema()->hasTable('attendance')) {
|
||||||
$this->migrateAttendance();
|
//no table yet, no need to migrate
|
||||||
|
$this->runMigrate('database/migrations/2021_06_08_113437_create_attendance_table.php');
|
||||||
|
}
|
||||||
|
if (!NexusDB::schema()->hasColumn('attendance', 'total_days')) {
|
||||||
|
$this->runMigrate('database/migrations/2021_06_13_215440_add_total_days_to_attendance_table.php');
|
||||||
|
$this->migrateAttendance();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user