Skip to content

Commit

Permalink
Register json doctrine type
Browse files Browse the repository at this point in the history
Fixes #174
  • Loading branch information
Luke Towers committed Oct 13, 2017
1 parent f3f7288 commit 0320a13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/DatabaseTableModel.php
Expand Up @@ -346,6 +346,7 @@ protected static function getSchemaManager()
// by Doctrine (https://github.com/laravel/framework/issues/1346)
$platform = self::$schemaManager->getDatabasePlatform();
$platform->registerDoctrineTypeMapping('enum', 'enumdbtype');
$platform->registerDoctrineTypeMapping('json', 'text');
}

return self::$schemaManager;
Expand Down Expand Up @@ -397,4 +398,4 @@ protected function createMigrationObject($code, $description)

return $migration;
}
}
}

1 comment on commit 0320a13

@LukeTowers
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo'd that commit, this fixes #175

Please sign in to comment.