first change
This commit is contained in:
0
Modules/Sitemap/database/factories/.gitkeep
Normal file
0
Modules/Sitemap/database/factories/.gitkeep
Normal file
0
Modules/Sitemap/database/migrations/.gitkeep
Normal file
0
Modules/Sitemap/database/migrations/.gitkeep
Normal file
@@ -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('sitemap_configs', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string("title");
|
||||
$table->mediumText("sitemap_excludes")->nullable();
|
||||
$table->boolean("ignore_robot")->default(false);
|
||||
$table->unsignedBigInteger("max_depth")->nullable();
|
||||
$table->unsignedBigInteger("max_crawl_count")->nullable();
|
||||
$table->integer("status")->default(1);
|
||||
$table->integer("order")->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('sitemap_configs');
|
||||
}
|
||||
};
|
0
Modules/Sitemap/database/seeders/.gitkeep
Normal file
0
Modules/Sitemap/database/seeders/.gitkeep
Normal file
16
Modules/Sitemap/database/seeders/SitemapDatabaseSeeder.php
Normal file
16
Modules/Sitemap/database/seeders/SitemapDatabaseSeeder.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Sitemap\Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class SitemapDatabaseSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
// $this->call([]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user