forked from directus/v8-archive
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Issue fix directus#902 * Add migration for allow value nullable in settings table * Set texttype for value field
- Loading branch information
1 parent
b4b3c4a
commit 11cd7ca
Showing
2 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
migrations/upgrades/schemas/20190426156200_set_nullable_value_field_settings_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
use Phinx\Migration\AbstractMigration; | ||
|
||
class SetNullableValueFieldSettingsTable extends AbstractMigration | ||
{ | ||
public function up() | ||
{ | ||
$table = $this->table('directus_settings'); | ||
|
||
$table->changeColumn('value', 'text', [ | ||
'null' => true | ||
]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters