changes
This commit is contained in:
@ -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);
|
||||
|
@ -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']);
|
||||
});
|
||||
}
|
||||
};
|
@ -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');
|
||||
}
|
||||
};
|
@ -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']);
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user