This commit is contained in:
@@ -73,7 +73,7 @@ def bootstrap_dev_data(
|
||||
) -> BootstrapResult:
|
||||
tenant = session.query(Tenant).filter(Tenant.slug == tenant_slug).one_or_none()
|
||||
if tenant is None:
|
||||
tenant = Tenant(slug=tenant_slug, name="Default Tenant", default_locale="en", settings={})
|
||||
tenant = Tenant(slug=tenant_slug, name="Default Tenant", default_locale="de", settings={})
|
||||
session.add(tenant)
|
||||
session.flush()
|
||||
|
||||
|
||||
@@ -685,7 +685,10 @@ def configured_migration_heads(
|
||||
manifest_factories=manifest_factories,
|
||||
migration_track=migration_track,
|
||||
)
|
||||
return tuple(sorted(ScriptDirectory.from_config(config).get_heads()))
|
||||
scripts = ScriptDirectory.from_config(config)
|
||||
return tuple(
|
||||
sorted(revision.revision for revision in scripts.get_revisions("heads"))
|
||||
)
|
||||
|
||||
|
||||
def database_is_at_configured_heads(
|
||||
|
||||
Reference in New Issue
Block a user