Skip to content

Commit

Permalink
#8933 Remove setting_type column
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy-1 committed Jun 2, 2023
1 parent 8942fe6 commit 51a74e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion classes/migration/install/LogMigration.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public function up(): void
$table->string('locale', 14)->default('');
$table->string('setting_name', 255);
$table->mediumText('setting_value')->nullable();
$table->string('setting_type', 6)->comment('(bool|int|float|string|object)')->nullable();
$table->unique(['log_id', 'setting_name', 'locale'], 'event_log_settings_unique');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function up(): void
$table->string('locale', 14)->default('')->after('log_id');
$table->dropUnique('event_log_settings_unique');
$table->unique(['log_id', 'locale', 'setting_name'], 'event_log_settings_unique');
$table->string('setting_type', 6)->nullable()->change();
$table->dropColumn('setting_type');
});

// Events can be triggered without a user, e.g., in schedule tasks
Expand Down

0 comments on commit 51a74e9

Please sign in to comment.