delegans  committed 20cf0a7 Draft

Add table object to create_table return

  • Participants
  • Parent commits 83c8976

Comments (0)

Files changed (1)

File alembic/

         This directive receives an argument list similar to that of the
         traditional :class:`sqlalchemy.schema.Table` construct, but without the
-        metadata::
+        metadata:: and return table object
             from sqlalchemy import INTEGER, VARCHAR, NVARCHAR, Column
             from alembic import op
          :class:`.Table` object created for the command.
-        self.impl.create_table(
-            self._table(name, *columns, **kw)
-        )
+	table_obj = self._table(name, *columns, **kw)
+        self.impl.create_table(table_obj)
+	return table_obj
     def drop_table(self, name):
         """Issue a "drop table" instruction using the current