Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
add missing sort_null_last + update schema dump
Browse files Browse the repository at this point in the history
Ref: #676
  • Loading branch information
wellingguzman committed Jan 11, 2019
1 parent fa76c9b commit 368684b
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 61 deletions.
8 changes: 8 additions & 0 deletions migrations/db/seeds/FieldsSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,14 @@ public function run()
'interface' => 'numeric',
'locked' => 1
],
[
'collection' => 'directus_settings',
'field' => 'sort_null_last',
'type' => \Directus\Database\Schema\DataTypes::TYPE_BOOLEAN,
'interface' => 'toggle',
'locked' => 1,
'note' => 'Will sort values with null at the end of the result'
],
[
'collection' => 'directus_settings',
'field' => 'auto_sign_out',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ public function up()
'type' => 'integer',
'interface' => 'numeric',
],
'sort_null_last' => [
'type' => 'boolean',
'interface' => 'toggle',
],
'auto_sign_out' => [
'type' => 'integer',
'interface' => 'numeric',
Expand Down
4 changes: 4 additions & 0 deletions src/core/Directus/Util/Installation/InstallerUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,10 @@ private static function getDefaultSettings($data)
'key' => 'default_limit',
'value' => '200'
],
[
'key' => 'sort_null_last',
'value' => 1
],
[
'key' => 'auto_sign_out',
'value' => '60'
Expand Down
Loading

0 comments on commit 368684b

Please sign in to comment.