mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-21 18:37:31 +08:00
fix upgrade attendance & change to v1.6.0
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.6.0-beta14');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-03-04');
|
||||
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.6.0');
|
||||
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-03-08');
|
||||
defined('IN_TRACKER') || define('IN_TRACKER', true);
|
||||
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
|
||||
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
|
||||
|
||||
@@ -133,9 +133,15 @@ class Update extends Install
|
||||
*
|
||||
* attendance change, do migrate
|
||||
*/
|
||||
if (WITH_LARAVEL && !NexusDB::schema()->hasColumn('attendance', 'total_days')) {
|
||||
$this->runMigrate('database/migrations/2021_06_13_215440_add_total_days_to_attendance_table.php');
|
||||
$this->migrateAttendance();
|
||||
if (WITH_LARAVEL) {
|
||||
if (!NexusDB::schema()->hasTable('attendance')) {
|
||||
//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