Skip to content

Commit

Permalink
set original type as fallback type
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Mar 1, 2018
1 parent 2e2befd commit 901f4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Directus/Database/Schema/Sources/MySQLSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function getAllFields(array $params = [])
['DF' => 'directus_fields'],
'SF.COLUMN_NAME = DF.field AND SF.TABLE_NAME = DF.collection',
[
'type' => new Expression('UCASE(DF.type)'),
'type' => new Expression('UCASE(IFNULL(DF.type, SF.DATA_TYPE))'),
'managed' => new Expression('IF(ISNULL(DF.id),0,1)'),
'interface',
'hidden_input' => new Expression('IF(DF.hidden_input=1,1,0)'),
Expand Down

0 comments on commit 901f4b7

Please sign in to comment.