home
/
forge
/
roadtovirtuosity.com
/
database
/
migrations
➕ New
📤 Upload
✎ Editing:
2023_05_23_135228_create_competitions_table.php
← Back
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('competitions', function (Blueprint $table) { $table->id(); $table->string('title'); $table->string('piece')->nullable(); $table->text('file')->nullable(); $table->integer('joining_fees')->nullable(); $table->dateTime('end_date')->nullable(); $table->integer('max_number')->nullable(); $table->integer('point_one')->nullable(); $table->integer('point_two')->nullable(); $table->integer('point_three')->nullable(); $table->integer('point_top_ten')->nullable(); $table->integer('point_top_fifty')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('competitions'); } };
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel