Skip to content

Commit 68ad733

Browse files
Update dependencies
1 parent 8e5eecd commit 68ad733

File tree

3 files changed

+33
-64
lines changed

3 files changed

+33
-64
lines changed

database/migrations/2023_05_15_000000_create_site_settings_table.php

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,13 @@
1111
*/
1212
public function up(): void
1313
{
14-
if (!Schema::hasTable('site_settings')) {
15-
Schema::create('site_settings', function (Blueprint $table) {
14+
if (!Schema::hasTable('settings')) {
15+
Schema::create('settings', function (Blueprint $table) {
1616
$table->id();
1717
$table->string('name')->nullable();
18-
$table->string('currency')->nullable();
19-
$table->string('default_language')->nullable();
20-
$table->string('address')->nullable();
21-
$table->string('country')->nullable();
22-
$table->string('email')->nullable();
23-
$table->string('phone_01')->nullable();
24-
$table->string('phone_02')->nullable();
25-
$table->string('phone_03')->nullable();
26-
$table->string('facebook')->nullable();
27-
$table->string('twitter')->nullable();
28-
$table->string('github')->nullable();
29-
$table->string('youtube')->nullable();
18+
$table->string('group')->nullable();
19+
$table->string('payload')->nullable();
20+
$table->integer('locked')->nullable();
3021
$table->timestamps();
3122
});
3223
}
@@ -37,6 +28,6 @@ public function up(): void
3728
*/
3829
public function down(): void
3930
{
40-
Schema::dropIfExists('site_settings');
31+
Schema::dropIfExists('settings');
4132
}
4233
};

database/migrations/2024_01_01_000002_migrate_old_site_settings_to_spatie.php

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
3+
<?php
4+
5+
use Illuminate\Database\Migrations\Migration;
6+
use Illuminate\Database\Schema\Blueprint;
7+
use Illuminate\Support\Facades\Schema;
8+
9+
return new class extends Migration
10+
{
11+
public function up(): void
12+
{
13+
Schema::create('reminder_settings', function (Blueprint $table) {
14+
$table->id();
15+
$table->integer('days_before_reminder')->default(3);
16+
$table->integer('reminder_frequency_days')->default(7);
17+
$table->integer('max_reminders')->default(3);
18+
$table->boolean('is_active')->default(true);
19+
$table->timestamps();
20+
});
21+
}
22+
23+
public function down(): void
24+
{
25+
Schema::dropIfExists('reminder_settings');
26+
}
27+
};

0 commit comments

Comments
 (0)