Skip to content

Commit 86b6a52

Browse files
authored
Fix CREATE ... BRANCH FROM ... when source uses ai extension (#8594)
We need to copy the edgedbext extension too, since some stuff uses it. Fixes #8581.
1 parent ae8c3ac commit 86b6a52

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

edb/server/bootstrap.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,10 +1173,14 @@ async def create_branch(
11731173
) -> None:
11741174
"""Create a new database (branch) based on an existing one."""
11751175

1176-
# Dump the edgedbpub schema that holds user data and any extensions.
1176+
# Dump the edgedbpub schema that holds user data and any
1177+
# extensions. Also dump edgedbext, which can unfortunately
1178+
# include some tables/views for the AI extension. (And some
1179+
# extensions, which get created with IF NOT EXISTS, so that is
1180+
# fine.)
11771181
schema_dump = await cluster.dump_database(
11781182
src_dbname,
1179-
include_schemas=('edgedbpub',),
1183+
include_schemas=('edgedbpub', 'edgedbext'),
11801184
include_extensions=('*',),
11811185
schema_only=True,
11821186
)

0 commit comments

Comments
 (0)