mardi 6 mars 2018

How to create unique indexes in Laravel?

I create table with migration in laravel 5.6.

I need create a unique indexes with migration.

My code is:

$table->index([
            'system',
            'code',
            'city',
            'seat',
            'type'
        ], 'PrimaryPayment');

But after run migrate . in phpmyadmin -> table -> table_name -> indexes show unique: No

How to create unique indexes?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2FoQiEj
via IFTTT

Aucun commentaire:

Enregistrer un commentaire