Laravel 4: Migration - Schema :: table - Text column automatically creates a primary unique index
I am creating a migration to Laravel with the following function:
public function up()
{
Schema::create('translate_item', function(Blueprint $table)
{
$table->increments('id');
$table->integer('lesson_id');
$table->text('lang_1');
$table->text('lang_2');
$table->timestamps();
});
}
The above creates text boxes as the main unique index as shown below:
Can anyone explain why this is happening and how to create textboxes without making it the main index?
+3
source to share