Happie coding

Tuesday, May 7, 2019

Wipe db or drop db contents (with foreign key constraint)

drop db contents
SET FOREIGN_KEY_CHECKS=0;
TRUNCATE `db_name`.`table_name`;
SET FOREIGN_KEY_CHECKS=1;

wipe db
php artisan migrate:fresh
Posted by Stanley at 3:32 PM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

Stanley
View my complete profile

Blog Archive

  • ▼  2019 (1)
    • ▼  May (1)
      • Wipe db or drop db contents (with foreign key cons...
  • ►  2018 (1)
    • ►  May (1)
  • ►  2016 (9)
    • ►  November (2)
    • ►  October (1)
    • ►  September (2)
    • ►  July (1)
    • ►  June (2)
    • ►  January (1)
  • ►  2015 (44)
    • ►  November (1)
    • ►  September (3)
    • ►  August (5)
    • ►  July (16)
    • ►  April (1)
    • ►  March (1)
    • ►  February (4)
    • ►  January (13)
Simple theme. Powered by Blogger.