Skip to content

Commit

Permalink
=
Browse files Browse the repository at this point in the history
  • Loading branch information
Arikaim committed Sep 14, 2024
1 parent d385f0c commit e1d3a1e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Models/Schema/RoutesSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function create($table)

// indexes
$table->unique(['pattern','method']);
$table->unique(['name','extension_name']);
$table->unique(['name']);
}

/**
Expand All @@ -63,6 +63,11 @@ public function create($table)
*/
public function update($table)
{
if ($this->hasIndex('routes_name_extension_name_unique') == true) {
$this->dropIndex('routes_name_extension_name_unique');
$table->unique(['name']);
}

if ($this->getColumnType('auth') == 'integer') {
$table->string('auth')->change();
}
Expand Down

0 comments on commit e1d3a1e

Please sign in to comment.