progress
This commit is contained in:
@ -15,11 +15,13 @@ return new class extends Migration
|
||||
$table->id('news_id');
|
||||
$table->integer('newscategories_id')->unsigned();
|
||||
$table->integer('provinces_id')->unsigned();
|
||||
$table->integer('newstypes_id')->unsigned();
|
||||
$table->integer('news_type_id')->unsigned();
|
||||
$table->integer('authors_id')->unsigned();
|
||||
$table->integer('parent_news')->nullable();
|
||||
$table->string('title',255)->nullable();
|
||||
$table->string('nepali_title',255)->nullable();
|
||||
$table->string('alias',255)->nullable();
|
||||
$table->text('short_description')->nullable();
|
||||
$table->longText('content')->nullable();
|
||||
$table->longText('featured_news')->nullable();
|
||||
$table->string('image',255)->nullable();
|
||||
@ -28,8 +30,8 @@ return new class extends Migration
|
||||
$table->integer('display_order')->default(1);
|
||||
$table->integer('status')->default(1);
|
||||
$table->text('remarks')->nullable();
|
||||
$table->integer('created_by')->nullable();
|
||||
$table->integer('updated_by')->nullable();
|
||||
$table->integer('createdBy')->nullable();
|
||||
$table->integer('updatedBy')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
@ -12,12 +12,17 @@ return new class extends Migration
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('provinces', function (Blueprint $table) {
|
||||
$table->id('priovince_id');
|
||||
$table->string('province_name',255)->nullable();
|
||||
$table->string('province_nepali_name',255)->nullable();
|
||||
$table->string('alias',255)->nullable();
|
||||
$table->id('province_id');
|
||||
$table->string('title', 255)->nullable();
|
||||
$table->string('province_nepali_name', 255)->charset('utf8mb4')->collate('utf8mb4_unicode_ci')->nullable();
|
||||
$table->string('alias', 255)->nullable();
|
||||
$table->integer('status')->default(1);
|
||||
$table->integer('display_order')->default(1);
|
||||
$table->integer('createdBy')->nullable();
|
||||
$table->integer('updatedBy')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -13,9 +13,15 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('authors', function (Blueprint $table) {
|
||||
$table->id('author_id');
|
||||
$table->string('author_name',255)->nullable();
|
||||
$table->string('author_description',255)->nullable();
|
||||
$table->string('author_image',255)->nullable();
|
||||
$table->string('title', 255)->nullable();
|
||||
$table->string('alias', 255)->nullable();
|
||||
$table->string('author_email', 255)->nullable();
|
||||
$table->string('author_description', 255)->nullable();
|
||||
$table->string('author_image', 255)->nullable();
|
||||
$table->integer('status')->default(1);
|
||||
$table->integer('display_order')->default(1);
|
||||
$table->integer('createdBy')->nullable();
|
||||
$table->integer('updatedBy')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
@ -13,7 +13,13 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('news_type', function (Blueprint $table) {
|
||||
$table->id('news_type_id');
|
||||
$table->string('title',255)->nullable();
|
||||
$table->string('title', 255)->nullable();
|
||||
$table->string('title_nepali',255)->nullable();
|
||||
$table->string('alias', 255)->nullable();
|
||||
$table->integer('status')->default(1);
|
||||
$table->integer('display_order')->default(1);
|
||||
$table->integer('createdBy')->nullable();
|
||||
$table->integer('updatedBy')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ return new class extends Migration
|
||||
$table->id('advertisement_id');
|
||||
$table->string('title',255)->nullable();
|
||||
$table->string('alias',255)->nullable();
|
||||
$table->integer('parent_advertisement');
|
||||
$table->text('description')->nullable();
|
||||
$table->string('image',255)->nullable();
|
||||
$table->string('video',255)->nullable();
|
||||
@ -22,8 +23,8 @@ return new class extends Migration
|
||||
$table->integer('display_order')->default(1);
|
||||
$table->integer('status')->default(1);
|
||||
$table->text('remarks')->nullable();
|
||||
$table->integer('created_by')->nullable();
|
||||
$table->integer('updated_by')->nullable();
|
||||
$table->integer('createdBy')->nullable();
|
||||
$table->integer('updatedBy')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
@ -0,0 +1,34 @@
|
||||
<?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('menulocations', function (Blueprint $table) {
|
||||
$table->id('menulocation_id');
|
||||
$table->string('title', 255)->nullable()->default(null);
|
||||
$table->string('alias', 255)->nullable()->default(null);
|
||||
$table->integer('display_order')->default(1);
|
||||
$table->integer('status')->default(1);
|
||||
$table->timestamps();
|
||||
$table->integer('createdby')->nullable()->default(null);
|
||||
$table->integer('updatedby')->nullable()->default(null);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('menulocations');
|
||||
}
|
||||
};
|
@ -0,0 +1,38 @@
|
||||
<?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('menuitems', function (Blueprint $table) {
|
||||
$table->id('menu_id');
|
||||
$table->integer('parent_menu')->notNullable();
|
||||
$table->integer('menulocations_id')->nullable();
|
||||
$table->string('title', 255)->nullable()->default(null);
|
||||
$table->string('alias', 255)->nullable()->default(null);
|
||||
$table->string('type', 255)->nullable()->default(null);
|
||||
$table->string('ref', 255)->nullable()->default(null);
|
||||
$table->string('target', 255)->nullable()->default(null);
|
||||
$table->integer('display_order')->default(1);
|
||||
$table->integer('status')->default(1);
|
||||
$table->timestamps();
|
||||
$table->integer('createdby')->nullable()->default(null);
|
||||
$table->integer('updatedby')->nullable()->default(null);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('menuitems');
|
||||
}
|
||||
};
|
@ -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('activity_logs', function (Blueprint $table) {
|
||||
$table->id('activity_id');
|
||||
$table->integer('user_id')->nullable();
|
||||
$table->string('controllerName')->nullable();
|
||||
$table->string('methodName')->nullable();
|
||||
$table->string('actionUrl')->nullable();
|
||||
$table->string('activity')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('activity_logs');
|
||||
}
|
||||
};
|
31
database/migrations/2024_06_13_162112_create_error_logs.php
Normal file
31
database/migrations/2024_06_13_162112_create_error_logs.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?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('error_logs', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->bigInteger('user_id')->unsigned()->default(NULL);
|
||||
$table->string('controller_name')->default(NULL);
|
||||
$table->string('method_name')->default(NULL);
|
||||
$table->string('errors')->default(NULL);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('error_logs');
|
||||
}
|
||||
};
|
@ -0,0 +1,37 @@
|
||||
<?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('operation_logs', function (Blueprint $table) {
|
||||
$table->id('operation_id');
|
||||
$table->string('refNo', 255)->nullable()->default(null);
|
||||
$table->integer('user_id')->nullable()->default(null);
|
||||
$table->bigInteger('operation_start_no')->nullable()->default(null);
|
||||
$table->bigInteger('operation_end_no')->nullable()->default(null);
|
||||
$table->string('model_name', 100)->nullable()->default(null);
|
||||
$table->integer('model_id')->nullable()->default(null);
|
||||
$table->string('operation_name', 100)->nullable()->default(null);
|
||||
$table->text('previous_values')->nullable()->default(null);
|
||||
$table->longText('new_values')->nullable()->default(null);
|
||||
$table->timestamp('created_at')->nullable()->default(null);
|
||||
$table->timestamp('updated_at')->nullable()->default(null);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('operation_logs');
|
||||
}
|
||||
};
|
@ -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('provinces', function (Blueprint $table) {
|
||||
$table->string('province_no')->nullable()->after('title');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('provinces', function (Blueprint $table) {
|
||||
$table->dropColumn('province_no');
|
||||
});
|
||||
}
|
||||
};
|
@ -0,0 +1,34 @@
|
||||
<?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('economies', function (Blueprint $table) {
|
||||
$table->id('economy_id');
|
||||
$table->string('title', 255)->nullable();
|
||||
$table->string('ecomomy_nepali_name', 255)->charset('utf8mb4')->collate('utf8mb4_unicode_ci')->nullable();
|
||||
$table->string('alias', 255)->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('economies');
|
||||
}
|
||||
};
|
@ -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('news', function (Blueprint $table) {
|
||||
$table->integer('economics_id')->unsigned()->after('news_type_id');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('news', function (Blueprint $table) {
|
||||
$table->dropColumn('economics_id');
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user