Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ php artisan tinker
- >>> Schema::drop('users')
- >>> Schema::drop('password_resets')
- >>> Schema::drop('orders')
- >>> exit
- php artisan migrate
- nishanth@localhost:~/Desktop/html/hutch$ php artisan migrate
- nishanth@localhost:~/Desktop/html/hutch$ php artisan migrate:rollback
- Nothing to rollback.
- nishanth@localhost:~/Desktop/html/hutch$ php artisan tinker
- Psy Shell v0.8.17 (PHP 7.1.20-1+ubuntu16.04.1+deb.sury.org+1 — cli) by Justin Hileman
- >>> Schema::drop('users')
- => null
- >>> Schema::drop('password_resets')
- => null
- >>> Schema::drop('orders')
- => null
- >>> exit
- Exit: Goodbye.
- nishanth@localhost:~/Desktop/html/hutch$ php artisan migrate
- Migrating: 2014_10_12_000000_create_users_table
- Migrated: 2014_10_12_000000_create_users_table
- Migrating: 2014_10_12_100000_create_password_resets_table
- Migrated: 2014_10_12_100000_create_password_resets_table
- Migrating: 2018_08_18_071213_create_orders_table
- Migrated: 2018_08_18_071213_create_orders_table
- nishanth@localhost:~/Desktop/html/hutch$
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('users');
- }
Add Comment
Please, Sign In to add comment