summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/schema.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/schema.py')
-rw-r--r--lib/sqlalchemy/schema.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/schema.py b/lib/sqlalchemy/schema.py
index e1e5e079c..fff93df72 100644
--- a/lib/sqlalchemy/schema.py
+++ b/lib/sqlalchemy/schema.py
@@ -176,6 +176,10 @@ class Table(SchemaItem, expression.TableClause):
been defined elsewhere in the application, else an exception is
raised.
+ prefixes
+ A list of strings to insert after CREATE in the CREATE TABLE
+ statement. They will be separated by spaces.
+
useexisting
Defaults to False: indicates that if this Table was already
defined elsewhere in the application, disregard the rest of the
@@ -224,6 +228,8 @@ class Table(SchemaItem, expression.TableClause):
if kwargs.get('info'):
self._info = kwargs.pop('info')
+ self._prefixes = kwargs.pop('prefixes', [])
+
self.__extra_kwargs(**kwargs)
# load column definitions from the database if 'autoload' is defined