You've already forked Atomcms-edit
Improvements: fix duplicate seeder, add missing seeders, remove redundant $with, add migration down(), optimize queries
This commit is contained in:
@@ -13,4 +13,12 @@ return new class extends Migration
|
||||
$table->foreign('user_id')->references('id')->on('users')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('website_articles', function (Blueprint $table) {
|
||||
$table->dropForeign(['user_id']);
|
||||
$table->string('user_id')->change();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
+7
@@ -12,4 +12,11 @@ return new class extends Migration
|
||||
$table->text('value')->change();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('website_settings', function (Blueprint $table) {
|
||||
$table->string('value')->change();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user