Files
Giacomo Vercesi f17aa20bd7 model.migrations: implicitly increase version
Instead of delegating to the migration the task of increasing the model
version, do it implicitly as part of the `migrate` function.
2025-10-16 16:08:05 +02:00

16 lines
413 B
Python

#
# This file is distributed under the MIT License. See LICENSE.md for details.
#
from revng.model.migrations import MigrationBase
class Migration(MigrationBase):
def __init__(self):
pass
def migrate(self, model):
naming_config = model.get("Configuration", {}).get("Naming", {})
if "UndefinedValuePrefix" in naming_config:
del naming_config["UndefinedValuePrefix"]