name=None,
type_=None,
schema=None,
+ autoincrement=None,
existing_type=None,
existing_server_default=None,
- existing_nullable=None
+ existing_nullable=None,
+ existing_autoincrement=None
):
-
+ if autoincrement is not None or existing_autoincrement is not None:
+ util.warn("nautoincrement and existing_autoincrement only make sense for MySQL")
if nullable is not None:
- self._exec(base.ColumnNullable(table_name, column_name,
+ self._exec(base.ColumnNullable(table_name, column_name,
nullable, schema=schema,
existing_type=existing_type,
existing_server_default=existing_server_default,
:param existing_nullable: Optional; the existing nullability
of the column. Required on MySQL if the existing nullability
is not being changed; else MySQL sets this to NULL.
+ :param existing_autoincrement: Optional; the
"""
- if existing_type:
+ compiler = self.impl.dialect.statement_compiler(
+ self.impl.dialect,
+ None
+ )
+ def _count_constraint(constraint):
+ return not isinstance(constraint, schema.PrimaryKeyConstraint) and \
+ (not constraint._create_rule or
+ constraint._create_rule(compiler))
+
+ if existing_type and type_:
t = self._table(table_name,
schema.Column(column_name, existing_type)
)