Guest User

Untitled

a guest
Aug 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. $ php artisan tinker
  2. >>> Schema::drop('users')
  3. >>> Schema::drop('password_resets')
  4. >>> Schema::drop('orders')
  5. >>> exit
  6. php artisan migrate
  7.  
  8. nishanth@localhost:~/Desktop/html/hutch$ php artisan migrate
  9.  
  10. nishanth@localhost:~/Desktop/html/hutch$ php artisan migrate:rollback
  11. Nothing to rollback.
  12. nishanth@localhost:~/Desktop/html/hutch$ php artisan tinker
  13. Psy Shell v0.8.17 (PHP 7.1.20-1+ubuntu16.04.1+deb.sury.org+1 — cli) by Justin Hileman
  14. >>> Schema::drop('users')
  15. => null
  16. >>> Schema::drop('password_resets')
  17. => null
  18. >>> Schema::drop('orders')
  19. => null
  20. >>> exit
  21. Exit: Goodbye.
  22. nishanth@localhost:~/Desktop/html/hutch$ php artisan migrate
  23. Migrating: 2014_10_12_000000_create_users_table
  24. Migrated: 2014_10_12_000000_create_users_table
  25. Migrating: 2014_10_12_100000_create_password_resets_table
  26. Migrated: 2014_10_12_100000_create_password_resets_table
  27. Migrating: 2018_08_18_071213_create_orders_table
  28. Migrated: 2018_08_18_071213_create_orders_table
  29. nishanth@localhost:~/Desktop/html/hutch$
  30.  
  31. /**
  32. * Reverse the migrations.
  33. *
  34. * @return void
  35. */
  36. public function down()
  37. {
  38. Schema::dropIfExists('users');
  39. }
Add Comment
Please, Sign In to add comment