From 9d7c6901cb92da6cb846bd6c90364cb5d3e934f4 Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Sat, 5 Jul 2008 03:31:30 +0000 Subject: Added prefixes option to that accepts a list of string to insert after CREATE in the CREATE TABLE statement. Closes #1075. --- lib/sqlalchemy/sql/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql/compiler.py') diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index c8324d753..51ad1dfb0 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -788,7 +788,7 @@ class SchemaGenerator(DDLBase): if column.default is not None: self.traverse_single(column.default) - self.append("\nCREATE TABLE " + self.preparer.format_table(table) + " (") + self.append("\nCREATE " + " ".join(table._prefixes) + " TABLE " + self.preparer.format_table(table) + " (") separator = "\n" -- cgit v1.2.1