voting added

This commit is contained in:
HolgerHatGarKeineNode
2023-03-11 00:10:30 +01:00
parent e8fac5e11e
commit 255bf2a2d8
2 changed files with 43 additions and 4 deletions

View File

@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('project_proposals', function (Blueprint $table) {
$table->string('slug')
->unique()
->after('id');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('project_proposals', function (Blueprint $table) {
//
});
}
};