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();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -31,13 +31,27 @@ class DatabaseSeeder extends Seeder
|
||||
WebsiteRuleCategorySeeder::class,
|
||||
WebsiteRuleSeeder::class,
|
||||
WebsiteHelperCenterCategorySeeder::class,
|
||||
WebsiteHelperCenterCategorySeeder::class,
|
||||
|
||||
// Values
|
||||
WebsiteRareValuesCategorySeeder::class,
|
||||
|
||||
// Housekeeping permissions
|
||||
HousekeepingPermissionSeeder::class,
|
||||
|
||||
// Features
|
||||
WebsiteArticleFeatureSeeder::class,
|
||||
|
||||
// Games
|
||||
GameRankSeeder::class,
|
||||
DailyChallengeSeeder::class,
|
||||
|
||||
// Radio
|
||||
RadioSettingsSeeder::class,
|
||||
RadioContestSeeder::class,
|
||||
RadioGiveawaySeeder::class,
|
||||
RadioListenerPointSeeder::class,
|
||||
RadioSongRequestSeeder::class,
|
||||
RadioSongVoteSeeder::class,
|
||||
]);
|
||||
|
||||
// \App\Models\User::factory(10)->create();
|
||||
|
||||
Reference in New Issue
Block a user