mercredi 25 mai 2016

Laravel migrations on SQL Server use the data type NCHAR, how can I force it to use CHAR instead?

I've created a very simple migration, that creates a table with a FK referencing a column on an existing table. The problem is that the migration creates a NCHAR datatype column, while the referenced column is of CHAR datatype, so the FK can't be created because of different datatypes columns.

Is there any way to enforce Laravel to use CHAR instead of NCHAR?

Thanks!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire