Skip to content

Commit

Permalink
allow null on sort interface column (Ref: #2007)
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Jan 14, 2018
1 parent 33e33c4 commit d758bc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/core/Directus/Database/SchemaManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ public function createTable($name, $columnsName = [])
if (in_array('sort', $columnsName)) {
$sortColumn = new Integer('sort');
$sortColumn->setOption('unsigned', true);
$sortColumn->setNullable(true);
$sortColumn->setDefault(null);
$table->addColumn($sortColumn);
}

Expand Down

0 comments on commit d758bc5

Please sign in to comment.