This commit is contained in:
tanch0
2024-06-18 16:26:58 +05:45
parent 613dfd1834
commit 50b8768a34
68 changed files with 1540 additions and 657 deletions

View File

@ -11,14 +11,13 @@ return new class extends Migration
*/
public function up(): void
{
Schema::create('advertisement', function (Blueprint $table) {
Schema::create('advertisements', function (Blueprint $table) {
$table->id('advertisement_id');
$table->string('title',255)->nullable();
$table->integer('ad_categories_id')->nullable();
$table->string('alias',255)->nullable();
$table->integer('parent_advertisement');
$table->text('description')->nullable();
$table->string('image',255)->nullable();
$table->string('video',255)->nullable();
$table->string('thumb',255)->nullable();
$table->string('link',255)->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);

View File

@ -0,0 +1,28 @@
<?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('videos', function (Blueprint $table) {
$table->text('description')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('videos', function (Blueprint $table) {
$table->dropColumn(['description']);
});
}
};

View File

@ -0,0 +1,32 @@
<?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::create('adcategories', function (Blueprint $table) {
$table->id('category_id');
$table->string('title')->nullable();
$table->integer('status')->default(1);
$table->integer('display_order')->default(1);
$table->integer('createdBy')->nullable();
$table->integer('updatedBy')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('adcategories');
}
};

View File

@ -0,0 +1,28 @@
<?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('adcategories', function (Blueprint $table) {
$table->string('alias')->nullable()->after('title');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('adcategories', function (Blueprint $table) {
$table->dropColumn(['alias']);
});
}
};