Fix migrations for new cast

This commit is contained in:
Henry Whitaker
2021-04-10 12:25:09 +01:00
parent b0659fd0d3
commit 78fcf49688
2 changed files with 6 additions and 2 deletions

View File

@@ -18,7 +18,9 @@ class AddVisibleColumnsSetting extends Migration
if (!SettingsHelper::get('visible_columns')) {
Setting::create([
'name' => 'visible_columns',
'value' => 'id,created_at,download,upload,ping',
'value' => [
'id', 'created_at', 'download', 'upload', 'ping'
],
'description' => 'Choose and order the columns shown in the "All Tests" table.'
]);
}

View File

@@ -18,7 +18,9 @@ class AddHiddenColumnsSetting extends Migration
if (!SettingsHelper::get('hidden_columns')) {
Setting::create([
'name' => 'hidden_columns',
'value' => 'server_id,server_name,server_host,url,scheduled',
'value' => [
'server_id', 'server_name', 'server_host', 'url', 'scheduled',
],
'description' => 'Columns hidden from the "All Tests" table.'
]);
}