Skip to content
Snippets Groups Projects
Commit c9c92bfe authored by Robb Lewis's avatar Robb Lewis
Browse files

Remove db migrations from setup

parent 1c35afe2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -42,8 +42,6 @@ class Setup extends Command
*/
public function handle()
{
$this->setupDatabase();
if (User::first()) {
$this->warn('User account already created, aborting.');
return;
Loading
Loading
@@ -57,25 +55,6 @@ class Setup extends Command
$this->info('Setup successfully completed!');
}
 
private function setupDatabase()
{
if (Schema::hasTable('migrations'))
{
$this->warn('`migrate:install` already run, skipping');
} else {
$this->info('Running migration install');
Artisan::call('migrate:install');
}
if (Schema::hasTable('tweets'))
{
$this->warn('`migrate` already run, skipping');
} else {
$this->info('Running table migrations');
Artisan::call('migrate', ['--force' => true]);
}
}
private function createUser()
{
$this->info('Creating user account');
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment