initial seed points = 0

This commit is contained in:
xiaomlove
2022-02-19 23:37:27 +08:00
parent f2f873e1e7
commit 2035e08695
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ Complete PT website building solution. Based on NexusPHP + Laravel Framework + E
- Multi-language - Multi-language
- Automatic backup - Automatic backup
- Backend management system - Backend management system
- Json api - Json API
- .... - ....
## System Requirements ## System Requirements
+1 -1
View File
@@ -15,7 +15,7 @@
- 多语言 - 多语言
- 自动备份 - 自动备份
- 管理后台 - 管理后台
- Json api - Json API
- .... - ....
## 系统要求 ## 系统要求
+3 -2
View File
@@ -140,8 +140,9 @@ class Update extends Install
*/ */
if (WITH_LARAVEL && !NexusDB::schema()->hasColumn('users', 'seed_points')) { if (WITH_LARAVEL && !NexusDB::schema()->hasColumn('users', 'seed_points')) {
$this->runMigrate('database/migrations/2021_06_24_013107_add_seed_points_to_users_table.php'); $this->runMigrate('database/migrations/2021_06_24_013107_add_seed_points_to_users_table.php');
$result = $this->initSeedPoints(); //Don't do this, initial seed points = 0;
$this->doLog("[INIT SEED POINTS], $result"); // $result = $this->initSeedPoints();
$this->doLog("[INIT SEED POINTS]");
} }