feat: migrate orgconfig to 1.1

This commit is contained in:
swve 2024-08-20 19:22:37 +02:00
parent 1423e4c432
commit b425f3a6bd
5 changed files with 51 additions and 1 deletions

View 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