I am Using laravel with MS SQL. When string datatype is defined in the migration (code attahced) laravel create a nvarchar datatype in the Database instead of varchar. How to restrict laravel or SQL Server to create varchar datatype when a datatype of string is defined in migration.
Following is the code for migration
public function up()
{
Schema::create('ie_applicant_type', function (Blueprint $table) {
$table->increments('applicant_type_id');
$table->string('applicant_type');
$table->timestamps();
});
}
and sqlsrv is default in config/database
'default' => env('DB_CONNECTION', 'sqlsrv')
but still nvarchar data type is created when the migration is run instead of varchar. SQL Pic attached