BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
public_html
/
app.imagivibe.com
/
app
/
Extensions
/
PhotoStudio
/
database
/
migrations
📤 Upload
📝 New File
📁 New Folder
Close
Editing: 2024_05_08_163635_create_photo_studios_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { public function up(): void { if (Schema::hasTable('photo_studios')) { return; } Schema::create('photo_studios', function (Blueprint $table) { $table->id(); $table->bigInteger('user_id')->nullable(); $table->string('photo')->nullable(); $table->text('payload')->nullable(); $table->integer('credits')->default(0); $table->timestamps(); }); } public function down(): void { Schema::dropIfExists('photo_studios'); } };
Save
Cancel