Skip to content

Commit 0c6754b

Browse files
committed
Version 0.19.2
1 parent c250244 commit 0c6754b

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2020
### Fixed
2121
### Removed --->
2222

23+
## 0.19.2 - 2023-08-28
24+
### Fixed
25+
- Version 0.19.1 database update check
26+
2327
## 0.19.1 - 2023-08-28
2428
### Changed
2529
- Now using Laravel Pint and Laravel preset for code style

config/package.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
|
1414
*/
1515

16-
'version' => '0.19.1',
16+
'version' => '0.19.2',
1717

1818
];

src/Http/Middleware/SystemCheck.php

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,29 @@ public function handle($request, Closure $next)
3838
}
3939

4040
// Check if DB database required
41+
$dbUpdateRequired = false;
42+
4143
if($setting = \VentureDrake\LaravelCrm\Models\Setting::where('name', 'db_update_0180')->first()) {
4244
if($setting->value == 0) {
43-
flash('Your Laravel CRM software version requires some database updates to function correctly. Please <a href="https://github.com/venturedrake/laravel-crm#upgrading-from--02">update database</a>')->info()->important();
45+
$dbUpdateRequired = true;
4446
}
4547
}
4648

4749
if($setting = \VentureDrake\LaravelCrm\Models\Setting::where('name', 'db_update_0181')->first()) {
4850
if($setting->value == 0) {
49-
flash('Your Laravel CRM software version requires some database updates to function correctly. Please <a href="https://github.com/venturedrake/laravel-crm#upgrading-from--02">update database</a>')->info()->important();
51+
$dbUpdateRequired = true;
5052
}
5153
}
54+
55+
if($setting = \VentureDrake\LaravelCrm\Models\Setting::where('name', 'db_update_0191')->first()) {
56+
if($setting->value == 0) {
57+
$dbUpdateRequired = true;
58+
}
59+
}
60+
61+
if($dbUpdateRequired){
62+
flash('Your Laravel CRM software version requires some database updates to function correctly. Please <a href="https://github.com/venturedrake/laravel-crm#upgrading-from--02">update database</a>')->info()->important();
63+
}
5264
}
5365

5466
return $next($request);

0 commit comments

Comments
 (0)