mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: migrate orgconfig to 1.1
This commit is contained in:
parent
1423e4c432
commit
b425f3a6bd
5 changed files with 51 additions and 1 deletions
14
apps/api/migrations/orgconfigs/v1_1.py
Normal file
14
apps/api/migrations/orgconfigs/v1_1.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
def migrate_to_v1_1(v1_config):
|
||||
# Start by copying the existing configuration
|
||||
v1_1_config = v1_config.copy()
|
||||
|
||||
# Update the config version
|
||||
v1_1_config["config_version"] = "1.1"
|
||||
|
||||
# Add the new 'cloud' object at the end
|
||||
v1_1_config['cloud'] = {
|
||||
"plan": "free",
|
||||
"custom_domain": False
|
||||
}
|
||||
|
||||
return v1_1_config
|
||||
Loading…
Add table
Add a link
Reference in a new issue