1
0
mirror of https://github.com/flarum/core.git synced 2025-10-20 03:06:07 +02:00

Improve install command, add custom migrations system

Implemented our own migration repository + migrator (based on Laravel's
stuff) so that we can keep track of which migrations have been run for
core and per-extension. That way we can simple call the migrator to
upgrade core/extensions, and to uninstall extensions.
This commit is contained in:
Toby Zerner
2015-08-14 12:47:59 +09:30
parent 5228628a71
commit 2edcbacccc
28 changed files with 822 additions and 193 deletions

View File

@@ -7,7 +7,7 @@ class DefaultData implements ProvidesData
return [
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'flarum',
'database' => 'flarum_console',
'username' => 'root',
'password' => 'root',
'prefix' => '',
@@ -22,4 +22,30 @@ class DefaultData implements ProvidesData
'email' => 'admin@example.com',
];
}
public function getSettings()
{
return [
'admin_url' => 'http://flarum.dev/admin',
'allow_post_editing' => 'reply',
'allow_renaming' => '10',
'allow_sign_up' => '1',
'api_url' => 'http://flarum.dev/api',
'base_url' => 'http://flarum.dev',
'custom_less' => '',
'default_locale' => 'en',
'default_route' => '/all',
'extensions_enabled' => '[]',
'forum_title' => 'Development Forum',
'forum_description' => '',
'mail_driver' => 'mail',
'mail_from' => 'noreply@flarum.dev',
'theme_colored_header' => '0',
'theme_dark_mode' => '0',
'theme_primary_color' => '#29415E',
'theme_secondary_color' => '#29415E',
'welcome_message' => 'This is beta software and you should not use it in production.',
'welcome_title' => 'Welcome to Development Forum',
];
}
}