-
Notifications
You must be signed in to change notification settings - Fork 24
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
Clean db #670
Merged
Merged
Clean db #670
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
1b7a030
another function for unit testing: return location for given ag_login_id
sjanssen2 2bf41e6
docstr + skipping None address fields
sjanssen2 43133bb
made sure to use unique ag_login_ids to avoid execution order conflicts
sjanssen2 286152e
since we drop the whole table ag.promoted_survey_ids, there is no lon…
sjanssen2 ddf5075
added further doc
sjanssen2 f17d6b7
removing geocode stuff
sjanssen2 268efbe
removed commented code
sjanssen2 b1274cc
update of the schema file
sjanssen2 1098860
manually re-sync schema with DB
sjanssen2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
-- May 5th, 2017 | ||
-- Stefan Janssen | ||
|
||
-- remove tables identified as no longer used in our code base. Most likely, they are left overs from the transition from Oracle to Postgres | ||
|
||
-- tables whose names do not show up in codebases of american-gut-web and labadmin (grep name *.py -i) | ||
DROP TABLE ag.ag_animal_survey; | ||
DROP TABLE ag.ag_human_survey; | ||
DROP TABLE ag.ag_import_stats_tmp; | ||
DROP TABLE ag.ag_map_markers; | ||
DROP TABLE ag.ag_participant_exceptions; | ||
DROP TABLE ag.ag_survey_answer; | ||
DROP TABLE ag.ag_survey_multiples; | ||
DROP TABLE ag.ag_survey_multiples_backup; | ||
DROP TABLE barcodes.barcode_exceptions; | ||
DROP TABLE ag.controlled_vocab_values; | ||
DROP TABLE ag.controlled_vocabs; | ||
|
||
-- we only delete information from this table, but never read or write. Can't we simply delete the full table then? | ||
DROP TABLE ag.promoted_survey_ids; | ||
|
||
-- a table we only read from, but never write. Thus, it is static. Can't we correct information elsewhere and get rid of this table? | ||
-- see discussion: https://github.com/biocore/american-gut-web/issues/669 | ||
--DROP TABLE ag.duplicate_consents; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove commented code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 and or remove that table?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am back to power now.
I think that this table will contradict with what we are going to implement with the many-to-many relation "source". And since @josenavas thinks that those information have never been validated, I'd like to remove this table. However, @EmbrietteH and @wasade needs to confirm this please.