-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change where Solr deletion happens; change db migration detection; & …
…misc Only delete changed data from Solr just before adding in solrise stage https://iaticonnect.org/group/9/topic/proposed-update-iati-datastore New DB column to track if data is in Solr or not Database Migrations now run on migration var from src/constants/version.py only #273 This removes need to make sure number var there moves in sync with migrations. Also fixes bug in isUpgrade(fromVersion, toVersion) by scrapping function entirely. Previously isUpgrade("1.1.1", "0.2.0") would return True Not scrapping number var yet, as that is stored in DB and may be used elsewhere. It is also used in a user agent string. (That GitHub issue can remain open to look at that later.) Also remove combined_datasets_toclean var - it is only used once and we don't need to copy what might be large data sets
- Loading branch information
1 parent
859944b
commit 84c5b00
Showing
4 changed files
with
21 additions
and
33 deletions.
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = {'number': "0.1.24", 'migration': 24} | ||
__version__ = {'number': "0.1.24", 'migration': 25} |
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
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
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,6 @@ | ||
upgrade = """ | ||
ALTER TABLE public.document ADD COLUMN last_solrize_end timestamp without time zone; | ||
""" | ||
downgrade = """ | ||
ALTER TABLE public.document DROP COLUMN last_solrize_end; | ||
""" |