Skip to content

Commit

Permalink
add a index on parking spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
alexberryman committed Dec 20, 2019
1 parent 6d8175d commit 0c4d1cd
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

use Phinx\Migration\AbstractMigration;

class AddIndexOnParkingSpaces extends AbstractMigration
{
public function change()
{
$this->table('listings')->addIndex(['parking_spaces']);
}
}

0 comments on commit 0c4d1cd

Please sign in to comment.