diff --git a/edb/schema/ddl.py b/edb/schema/ddl.py index 3b8278917bb..cc2f0e65323 100644 --- a/edb/schema/ddl.py +++ b/edb/schema/ddl.py @@ -618,6 +618,7 @@ def apply_ddl_script_ex( stdmode: bool = False, internal_schema_mode: bool = False, testmode: bool = False, + store_migration_sdl: bool=False, schema_object_ids: Optional[ Mapping[Tuple[sn.Name, Optional[str]], uuid.UUID] ]=None, @@ -639,6 +640,7 @@ def apply_ddl_script_ex( stdmode=stdmode, internal_schema_mode=internal_schema_mode, testmode=testmode, + store_migration_sdl=store_migration_sdl, schema_object_ids=schema_object_ids, compat_ver=compat_ver, ) diff --git a/tests/test_edgeql_ddl.py b/tests/test_edgeql_ddl.py index 2962bd51042..3d569848ceb 100644 --- a/tests/test_edgeql_ddl.py +++ b/tests/test_edgeql_ddl.py @@ -17415,6 +17415,16 @@ async def test_edgeql_ddl_rebase_views_02(self): [{}], ) + async def test_edgeql_ddl_schema_repair(self): + await self.con.execute(''' + create type Tgt { + create property lol := count(Object) + } + ''') + await self.con.execute(''' + administer schema_repair() + ''') + async def test_edgeql_ddl_alias_and_create_set_required(self): await self.con.execute(r""" create type T;