From b9ef894de9bb2d5bb1198ed2d8350ef6e41bdba1 Mon Sep 17 00:00:00 2001 From: Jack Grahl Date: Fri, 29 Jun 2018 15:21:00 +0000 Subject: [PATCH] Make call to declarative_base clear in example. Having this function call in the example code makes it 100% clear that Base has to be initialized with the metadata object, and how to do this. --- docs/build/naming.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/build/naming.rst b/docs/build/naming.rst index a630011b..4d22890a 100644 --- a/docs/build/naming.rst +++ b/docs/build/naming.rst @@ -166,6 +166,7 @@ used:: "fk": "fk_%(table_name)s_%(column_0_name)s_%(referred_table_name)s", "pk": "pk_%(table_name)s" }) + Base = declarative_base(metadata=meta) # .. in your Alembic env.py: -- 2.47.2