mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
update from v2-2-0 also changes schema in assets to v 3.0
This commit is contained in:
parent
40ae796b66
commit
02f61eee55
1 changed files with 13 additions and 2 deletions
|
|
@ -174,9 +174,20 @@ class PypeUpdateFromV2_2_0(BaseAction):
|
||||||
|
|
||||||
self.db_con.install()
|
self.db_con.install()
|
||||||
for project in projects_to_process:
|
for project in projects_to_process:
|
||||||
self.log.debug("Unsetting silo for project \"{}\"".format(project))
|
self.log.debug("Processing project \"{}\"".format(project))
|
||||||
self.db_con.Session["AVALON_PROJECT"] = project
|
self.db_con.Session["AVALON_PROJECT"] = project
|
||||||
self.db_con.update_many({"type": "asset"}, {"$unset": {"silo": ""}})
|
|
||||||
|
self.log.debug("- Unsetting silos on assets")
|
||||||
|
self.db_con.update_many(
|
||||||
|
{"type": "asset"},
|
||||||
|
{"$unset": {"silo": ""}}
|
||||||
|
)
|
||||||
|
|
||||||
|
self.log.debug("- setting schema of assets to v.3")
|
||||||
|
self.db_con.update_many(
|
||||||
|
{"type": "asset"},
|
||||||
|
{"$set": {"schema": "avalon-core:asset-3.0"}}
|
||||||
|
)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue