Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wipe_everything.rb Script to handle FK Checks #1211

Conversation

TimothyDLewis
Copy link
Contributor

Fix for #1195

File Changes:

  • Gemfile.lock
    • Adds new platform x86_64-darwin-21
    • Adds nokogiri reference (same version as linux Platform)
  • scripts/wipe_everything.rb
    • Adds SET FOREIGN_KEY_CHECKS SQL to disable FK checks during DELETE FROM {table} Calls (re-enables when finished)
    • Adds Community.create(name: 'Dev Community', host: 'localhost:3000') (from initial setup document: https://collab.codidact.org/posts/280451/280452)
    • Adjusts Seeder command (removes bundle exec)

Screenshots:

Screen Shot 2023-10-03 at 4 46 06 PM

TimothyDLewis and others added 2 commits October 3, 2023 16:29
… issues with FK checks during DELETE), added default Community creation, adjusted command (removed `bundle exec`)
@ArtOfCode- ArtOfCode- merged commit d040f8d into codidact:develop Oct 3, 2023
2 checks passed
@TimothyDLewis TimothyDLewis deleted the TimothyDLewis/1195/wipe-everything-script-fails-foreign-key-constraints branch October 3, 2023 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants