Add (ai tool submission)
This commit is contained in:
@@ -12,11 +12,11 @@
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('ai_tools', function (Blueprint $table) {
|
||||
$table->string('priority')->default('default');
|
||||
$table->enum('status',['live','trashed','blocked'])->default('live');
|
||||
$table->string('priority')->default('default');
|
||||
$table->enum('status', ['live', 'trashed', 'blocked'])->default('live');
|
||||
|
||||
$table->index('priority');
|
||||
$table->index('status');
|
||||
$table->index('priority');
|
||||
$table->index('status');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -26,8 +26,8 @@ public function up(): void
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('ai_tools', function (Blueprint $table) {
|
||||
$table->dropColumn('priority');
|
||||
$table->dropColumn('status');
|
||||
$table->dropColumn('priority');
|
||||
$table->dropColumn('status');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('url_to_crawls', function (Blueprint $table) {
|
||||
$table->integer('crawl_counts')->default(0);
|
||||
$table->integer('crawl_counts')->default(0);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
<?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('submit_tools', function (Blueprint $table) {
|
||||
|
||||
$table->id();
|
||||
|
||||
$table->enum('submit_type', ['free', 'paid'])->default('free');
|
||||
|
||||
$table->mediumText('submitted_url');
|
||||
|
||||
$table->string('email');
|
||||
|
||||
$table->string('social')->nullable();
|
||||
|
||||
$table->string('social_type')->nullable();
|
||||
|
||||
$table->mediumText('source')->nullable();
|
||||
|
||||
$table->string('source_type')->nullable();
|
||||
|
||||
$table->mediumText('comments')->nullable();
|
||||
|
||||
$table->enum('status', ['initial', 'queued_for_crawl', 'crawled', 'rejected'])->default('initial');
|
||||
|
||||
$table->enum('queue_priority', ['default', 'high_priority'])->default('default');
|
||||
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('submit_tools');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user