rename instance settings
This commit is contained in:
@@ -11,7 +11,7 @@ return new class extends Migration
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('coolify_instance_settings', function (Blueprint $table) {
|
||||
Schema::create('instance_settings', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('fqdn')->nullable();
|
||||
$table->string('wildcard_domain')->nullable();
|
||||
@@ -36,6 +36,6 @@ return new class extends Migration
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('coolify_instance_settings');
|
||||
Schema::dropIfExists('instance_settings');
|
||||
}
|
||||
};
|
@@ -1,28 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Application;
|
||||
use App\Models\ApplicationSetting;
|
||||
use App\Models\CoolifyInstanceSettings;
|
||||
use App\Models\Environment;
|
||||
use App\Models\GithubApp;
|
||||
use App\Models\StandaloneDocker;
|
||||
use App\Models\SwarmDocker;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class CoolifyInstanceSettingsSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
CoolifyInstanceSettings::create([
|
||||
'id' => 1,
|
||||
'wildcard_domain' => 'coolify.io',
|
||||
'is_https_forced' => false,
|
||||
'is_registration_enabled' => true,
|
||||
]);
|
||||
}
|
||||
}
|
@@ -9,7 +9,7 @@ class DatabaseSeeder extends Seeder
|
||||
public function run(): void
|
||||
{
|
||||
$this->call([
|
||||
CoolifyInstanceSettingsSeeder::class,
|
||||
InstanceSettingsSeeder::class,
|
||||
UserSeeder::class,
|
||||
TeamSeeder::class,
|
||||
PrivateKeySeeder::class,
|
||||
|
22
database/seeders/InstanceSettingsSeeder.php
Normal file
22
database/seeders/InstanceSettingsSeeder.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\InstanceSettings;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class InstanceSettingsSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
InstanceSettings::create([
|
||||
'id' => 0,
|
||||
'wildcard_domain' => 'coolify.io',
|
||||
'is_https_forced' => false,
|
||||
'is_registration_enabled' => true,
|
||||
]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user