]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
MultiDB README: Add a bit more detail 932/head
authorChris Dary <umbrae@gmail.com>
Fri, 24 Sep 2021 19:47:08 +0000 (15:47 -0400)
committerGitHub <noreply@github.com>
Fri, 24 Sep 2021 19:47:08 +0000 (15:47 -0400)
alembic/templates/multidb/README

index 5db219f9d2c08d9197977985c57764a38fa0d918..f046ec91427e2f4edd53dcb5409b21955c8fd0af 100644 (file)
@@ -1 +1,12 @@
-Rudimentary multi-database configuration.
\ No newline at end of file
+Rudimentary multi-database configuration.
+
+Multi-DB isn't vastly different from generic. The primary difference is that it
+will run the migrations N times (depending on how many databases you have
+configured), providing one engine name and associated context for each run.
+
+That engine name will then allow the migration to restrict what runs within it to
+just the appropriate migrations for that engine. You can see this behavior within
+the mako template.
+
+In the provided configuration, you'll need to have `databases` provided in
+alembic's config, and an `sqlalchemy.url` provided for each engine name.