mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-18 02:34:08 +00:00
Improve installed database detection
This commit is contained in:
23
database/migrations/2024_02_04_005632_update_version_100.php
Normal file
23
database/migrations/2024_02_04_005632_update_version_100.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use InvoiceShelf\Models\Setting;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Setting::setSetting('version', '1.0.0');
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
};
|
||||
@@ -6,6 +6,7 @@ use Illuminate\Database\Seeder;
|
||||
use InvoiceShelf\Models\Address;
|
||||
use InvoiceShelf\Models\Setting;
|
||||
use InvoiceShelf\Models\User;
|
||||
use InvoiceShelf\Space\InstallUtils;
|
||||
|
||||
class DemoSeeder extends Seeder
|
||||
{
|
||||
@@ -24,6 +25,6 @@ class DemoSeeder extends Seeder
|
||||
|
||||
Setting::setSetting('profile_complete', 'COMPLETED');
|
||||
|
||||
\Storage::disk('local')->put('database_created', 'database_created');
|
||||
InstallUtils::createDbMarker();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user