updatea
This commit is contained in:
35
database/migrations/2024_06_16_020750_crate_videos_table.php
Normal file
35
database/migrations/2024_06_16_020750_crate_videos_table.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?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('videos', function (Blueprint $table) {
|
||||
$table->id('video_id');
|
||||
$table->string('title', 255)->nullable();
|
||||
$table->string('video_url', 255)->nullable();
|
||||
$table->string('image', 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();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('videos');
|
||||
}
|
||||
};
|
@ -0,0 +1,35 @@
|
||||
<?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('horoscopes', function (Blueprint $table) {
|
||||
$table->id('horoscope_id');
|
||||
$table->string('title', 255)->nullable();
|
||||
$table->string('title_nepali', 255)->charset('utf8mb4')->collate('utf8mb4_unicode_ci')->nullable();
|
||||
$table->string('alias', 255)->nullable();
|
||||
$table->string('description', 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('horoscopes');
|
||||
}
|
||||
};
|
@ -0,0 +1,29 @@
|
||||
<?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('horoscopes', function (Blueprint $table) {
|
||||
$table->string('image')->nullable()->after('alias');
|
||||
$table->string('thumb')->nullable()->after('image');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('horoscopes', function (Blueprint $table) {
|
||||
$table->dropColumn(['image', 'thumb']);
|
||||
});
|
||||
}
|
||||
};
|
@ -0,0 +1,41 @@
|
||||
<?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('articles', function (Blueprint $table) {
|
||||
$table->id('article_id');
|
||||
$table->integer('parent_article')->default(0);
|
||||
$table->string('title', 250)->nullable();
|
||||
$table->text('subtitle')->nullable();
|
||||
$table->string('alias', 250)->nullable();
|
||||
$table->text('text')->nullable();
|
||||
$table->string('cover_photo', 500)->nullable();
|
||||
$table->integer('display_order')->default(1);
|
||||
$table->integer('status')->default(1);
|
||||
$table->text('seo_keywords')->nullable();
|
||||
$table->text('seo_title')->nullable();
|
||||
$table->text('seo_descriptions')->nullable();
|
||||
$table->text('og_tags')->nullable();
|
||||
$table->integer('createdby')->nullable();
|
||||
$table->integer('updatedby')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('articles');
|
||||
}
|
||||
};
|
36
database/migrations/2024_06_16_111052_create_teams_table.php
Normal file
36
database/migrations/2024_06_16_111052_create_teams_table.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?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('teams', function (Blueprint $table) {
|
||||
$table->id('team_id');
|
||||
$table->string('title', 255)->nullable();
|
||||
$table->string('alias', 255)->nullable();
|
||||
$table->string('photo', 255)->nullable();
|
||||
$table->string('designation', 255)->nullable();
|
||||
$table->text('description')->nullable();
|
||||
$table->integer('display_order')->nullable();
|
||||
$table->integer('status')->nullable();
|
||||
$table->integer('createdby')->nullable();
|
||||
$table->integer('updatedby')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('teams');
|
||||
}
|
||||
};
|
@ -0,0 +1,29 @@
|
||||
<?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('settings', function (Blueprint $table) {
|
||||
$table->string('recaptcha_secret_key')->nullable()->after('updatedby');
|
||||
$table->string('recaptcha_site_key')->nullable()->after('recaptcha_secret_key');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('settings', function (Blueprint $table) {
|
||||
$table->dropColumn(['recaptcha_secret_key', 'recaptcha_site_key']);
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user