2016-01-25 18:45:34 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
|
|
2024-03-19 21:03:50 -04:00
|
|
|
return new class extends Migration
|
2016-01-25 18:45:34 -05:00
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Run the migrations.
|
|
|
|
|
*/
|
2024-03-19 21:12:27 -04:00
|
|
|
public function up(): void
|
2016-01-25 18:45:34 -05:00
|
|
|
{
|
|
|
|
|
Schema::table('permissions', function (Blueprint $table) {
|
|
|
|
|
$table->renameColumn('permissions', 'permission');
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Reverse the migrations.
|
|
|
|
|
*/
|
2024-03-19 21:12:27 -04:00
|
|
|
public function down(): void
|
2016-01-25 18:45:34 -05:00
|
|
|
{
|
2024-11-22 09:27:57 +01:00
|
|
|
Schema::table('permissions', function (Blueprint $table) {});
|
2016-01-25 18:45:34 -05:00
|
|
|
}
|
2024-03-19 21:03:50 -04:00
|
|
|
};
|