mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-26 14:04:17 +01:00
Reorder
This commit is contained in:
@@ -7,18 +7,6 @@ use MyAAC\Models\ForumBoard;
|
|||||||
use MyAAC\Models\Gallery;
|
use MyAAC\Models\Gallery;
|
||||||
use MyAAC\Models\NewsCategory;
|
use MyAAC\Models\NewsCategory;
|
||||||
|
|
||||||
if (NewsCategory::count() === 0) {
|
|
||||||
$newsCategories = [
|
|
||||||
0, 1, 2, 3, 4
|
|
||||||
];
|
|
||||||
|
|
||||||
foreach ($newsCategories as $iconId) {
|
|
||||||
NewsCategory::create([
|
|
||||||
'icon_id' => $iconId,
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Changelog::count() === 0) {
|
if (Changelog::count() === 0) {
|
||||||
Changelog::create([
|
Changelog::create([
|
||||||
'type' => 3,
|
'type' => 3,
|
||||||
@@ -29,7 +17,6 @@ if (Changelog::count() === 0) {
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (Config::where('name', 'database_version')->count() === 0) {
|
if (Config::where('name', 'database_version')->count() === 0) {
|
||||||
Config::create([
|
Config::create([
|
||||||
'name' => 'database_version',
|
'name' => 'database_version',
|
||||||
@@ -57,6 +44,18 @@ if (ForumBoard::count() === 0) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (NewsCategory::count() === 0) {
|
||||||
|
$newsCategoriesIcons = [
|
||||||
|
0, 1, 2, 3, 4
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($newsCategoriesIcons as $iconId) {
|
||||||
|
NewsCategory::create([
|
||||||
|
'icon_id' => $iconId,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (Gallery::count() === 0) {
|
if (Gallery::count() === 0) {
|
||||||
Gallery::create([
|
Gallery::create([
|
||||||
'comment' => 'Demon',
|
'comment' => 'Demon',
|
||||||
|
|||||||
Reference in New Issue
Block a user