| 1234567891011121314151617181920212223242526272829 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- /*
- * Таблица ссылок для парсера.
- * Каждая строка — один URL, который парсер обходит.
- * Создана: 2026-06-06
- * Индексы: sort_order (сортировка списка)
- */
- return new class extends Migration
- {
- public function up(): void
- {
- Schema::create('parser_links', function (Blueprint $table) {
- $table->id();
- $table->string('url');
- $table->integer('sort_order')->default(0)->index();
- $table->timestamps();
- });
- }
- public function down(): void
- {
- Schema::dropIfExists('parser_links');
- }
- };
|