-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #302 from europeana/EA-3720_zoho_eu_migration
replace wikidata country ids in consolidated version, allow zoho sync
- Loading branch information
Showing
5 changed files
with
134 additions
and
24 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
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
40 changes: 40 additions & 0 deletions
40
entity-management-mongo/src/test/resources/migrations/04_migrate_organization_country.txt
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,40 @@ | ||
#CHECK organizations | ||
db.getCollection('EntityRecord').count({"entity.type":"Organization"}) | ||
4574 | ||
|
||
#DELETE Organizations | ||
db.getCollection('EntityRecord').deleteMany({"entity.type":"Organization"}) | ||
|
||
#Remove From Generator | ||
db.getCollection("EntityIdGenerator").deleteMany({"_id" : "Organization"}) | ||
|
||
#remove from ZohoSyncReport | ||
db.getCollection("ZohoSyncReport").find({}) | ||
db.getCollection("ZohoSyncReport").deleteMany({}) | ||
|
||
|
||
#check remove failed tasks for organizations | ||
db.getCollection("FailedTasks").find({entityId: /.*organization.*/}) | ||
db.getCollection("FailedTasks").deleteMany({entityId: /.*organization.*/}) | ||
|
||
#check existing schedules tasks | ||
db.getCollection("ScheduledTasks").find({}) | ||
db.getCollection("ScheduledTasks").deleteMany({}) | ||
|
||
#job instances | ||
db.getCollection("JobInstance").deleteMany({}) | ||
|
||
#check failed job executions | ||
db.getCollection("JobExecution").find({status: {$ne: "COMPLETED" } }) | ||
db.getCollection("JobExecution").deleteMany({}) | ||
|
||
|
||
#check failed job executions | ||
db.getCollection("StepExecution").find({status: {$ne: "COMPLETED" } }) | ||
db.getCollection("StepExecution").deleteMany({}) | ||
|
||
#clean execution context | ||
db.getCollection("ExecutionContext").deleteMany({}) | ||
|
||
#eventually | ||
#db.getCollection("Sequence").delete({}) |
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