Skip to content
Snippets Groups Projects
Unverified Commit 54cb6c05 authored by snipe's avatar snipe Committed by GitHub
Browse files

Merge pull request #9679 from tulsaschoolsdata/serial-number-indexes

Fixed #8486: Add index for asset serial number
parents 851e5ca9 ebe7c2da
Branches
No related tags found
No related merge requests found
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddSerialNumberIndexes extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('assets', function (Blueprint $table) {
$table->index(['serial']);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('assets', function (Blueprint $table) {
$table->dropIndex(['serial']);
});
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment