diff --git a/src/Database/Migrations/2025_01_18_112529_create_table_template_table.php b/src/Database/Migrations/2025_01_18_112529_create_table_template_table.php index 983c147..aa50fdb 100644 --- a/src/Database/Migrations/2025_01_18_112529_create_table_template_table.php +++ b/src/Database/Migrations/2025_01_18_112529_create_table_template_table.php @@ -11,15 +11,8 @@ */ public function up(): void { - Schema::create('template', function (Blueprint $table) { - $table->id(); - $table->string('template_name'); + Schema::table('template', function (Blueprint $table) { $table->string('template_banner'); - $table->string('des'); - $table->string('template_link'); - $table->string('template_countent'); - $table->string('created_at'); - $table->string('updated_at'); }); } @@ -28,6 +21,8 @@ public function up(): void */ public function down(): void { - Schema::dropIfExists('template'); + Schema::table('template', function (Blueprint $table) { + $table->dropColumn('template_banner'); + }); } }; diff --git a/src/Database/Migrations/2025_01_18_112616_create_table_site_config.php b/src/Database/Migrations/2025_01_18_112616_create_table_site_config.php deleted file mode 100644 index 513f663..0000000 --- a/src/Database/Migrations/2025_01_18_112616_create_table_site_config.php +++ /dev/null @@ -1,30 +0,0 @@ -id(); - $table->string('key'); - $table->string('value'); - $table->string('type'); - $table->timestamps(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('site_config'); - } -};