App\Console\Commands\PaveIt Class Reference
Inheritance diagram for App\Console\Commands\PaveIt:

Public Member Functions

 __construct ()
 Create a new command instance. More...
 
 handle ()
 Execute the console command. More...
 

Protected Attributes

 $signature = 'pave'
 
 $description = 'Pave the database to start over. This should ALMOST NEVER BE USED. (It is primarily a quick tool for developers.)'
 

Detailed Description

Definition at line 8 of file PaveIt.php.

Constructor & Destructor Documentation

App\Console\Commands\PaveIt::__construct ( )

Create a new command instance.

Returns
void

Definition at line 29 of file PaveIt.php.

30  {
31  parent::__construct();
32  }

Member Function Documentation

App\Console\Commands\PaveIt::handle ( )

Execute the console command.

Returns
mixed

Definition at line 39 of file PaveIt.php.

40  {
41 
42  if ($this->confirm("\n****************************************************\nTHIS WILL DROP ALL OF THE TABLES IN YOUR DATABASE. \nThere is NO undo. This WILL destroy ALL of your data. \n****************************************************\n\nDo you wish to continue? No backsies! [y|N]")) {
43 
44  \DB::statement('drop table IF EXISTS accessories_users');
45  \DB::statement('drop table IF EXISTS accessories');
46  \DB::statement('drop table IF EXISTS asset_logs');
47  \DB::statement('drop table IF EXISTS asset_maintenances');
48  \DB::statement('drop table IF EXISTS asset_uploads');
49  \DB::statement('drop table IF EXISTS assets');
50  \DB::statement('drop table IF EXISTS categories');
51  \DB::statement('drop table IF EXISTS companies');
52  \DB::statement('drop table IF EXISTS consumables_users');
53  \DB::statement('drop table IF EXISTS consumables');
54  \DB::statement('drop table IF EXISTS custom_field_custom_fieldset');
55  \DB::statement('drop table IF EXISTS custom_fields');
56  \DB::statement('drop table IF EXISTS custom_fieldsets');
57  \DB::statement('drop table IF EXISTS depreciations');
58  \DB::statement('drop table IF EXISTS groups');
59  //\DB::statement('drop table IF EXISTS history');
60  \DB::statement('drop table IF EXISTS license_seats');
61  \DB::statement('drop table IF EXISTS licenses');
62  \DB::statement('drop table IF EXISTS locations');
63  \DB::statement('drop table IF EXISTS manufacturers');
64  \DB::statement('drop table IF EXISTS models');
65  \DB::statement('drop table IF EXISTS migrations');
66  \DB::statement('drop table IF EXISTS password_resets');
67  \DB::statement('drop table IF EXISTS requested_assets');
68  \DB::statement('drop table IF EXISTS requests');
69  \DB::statement('drop table IF EXISTS settings');
70  \DB::statement('drop table IF EXISTS status_labels');
71  \DB::statement('drop table IF EXISTS suppliers');
72  \DB::statement('drop table IF EXISTS throttle');
73  \DB::statement('drop table IF EXISTS users_groups');
74  \DB::statement('drop table IF EXISTS users');
75 
76 
77  }
78 
79  }

Member Data Documentation

App\Console\Commands\PaveIt::$description = 'Pave the database to start over. This should ALMOST NEVER BE USED. (It is primarily a quick tool for developers.)'
protected

Definition at line 22 of file PaveIt.php.

App\Console\Commands\PaveIt::$signature = 'pave'
protected

Definition at line 15 of file PaveIt.php.


The documentation for this class was generated from the following file: