Файл: database/upgrades/2026_05_19_000002_insert_default_module_registry.php
Строк: 23
<?php
use IlluminateDatabaseMigrationsMigration;
use IlluminateSupportFacadesDB;
return new class extends Migration {
public function up(): void
{
DB::table('module_registries')->insertOrIgnore([
'url' => 'https://github.com/visavi/rotor-modules/releases/download/registry/registry.json',
'name' => 'Official Rotor Modules',
'active' => true,
'created_at' => now(),
'updated_at' => now(),
]);
}
public function down(): void
{
DB::table('module_registries')
->where('url', 'https://github.com/visavi/rotor-modules/releases/download/registry/registry.json')
->delete();
}
};