Skip to content

Upgrading alembic 0.7 to 0.8

Unknown0.7.7 → 0.8.10

UnknownUpgrade verdict

DepDelta hasn't looked for this range's notes yet, so breaking changes can't be ruled out.

  • DepDelta hasn't finished looking for the notes in this range, so it can't rule out breaking changes yet.
Unknown for releases without notes

Releases without notes may still need changes. Check their commits before upgrading.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • added: export environment
  • added: export migration
  • added: export RevisionContext
  • added: export Rewriter
  • added: export comparators
  • added: export produce_migrations
  • added: export render_op_text
  • added: export render_python_code
  • added: export renderers
  • removed: variable log
  • added: class AutogenContext(object)
  • added: class RevisionContext(object)
  • added: constructor AutogenContext(migration_context, metadata=…, opts=…, autogenerate=…)
  • added: constructor RevisionContext(config, script_directory, command_args)
  • added: field AutogenContext.connection
  • added: field AutogenContext.dialect
  • added: field AutogenContext.imports
  • added: field AutogenContext.metadata
  • added: field AutogenContext.migration_context
  • added: function produce_migrations(context, metadata)
  • added: function render_python_code(up_or_down_op, sqlalchemy_module_prefix=…, alembic_module_prefix=…, render_as_batch=…, imports=…, render_item=…)
  • added: method AutogenContext.inspector()
  • added: method AutogenContext.run_filters(object_, name, type_, reflected, compare_to)
  • added: method RevisionContext.generate_scripts()
  • added: method RevisionContext.run_autogenerate(rev, migration_context)
  • added: method RevisionContext.run_no_autogenerate(rev, migration_context)
  • added: variable comparators
  • removed: variable log
  • added: function render_op(autogen_context, op)
  • added: function render_op_text(autogen_context, op)
  • added: variable default_renderers
  • added: variable renderers
  • added: class Rewriter(object)
  • added: constructor Rewriter()
  • added: method Rewriter.chain(other)
  • added: method Rewriter.process_revision_directives(context, revision, directives)
  • added: method Rewriter.rewrites(operator)
  • removed: class ApplyBatchImpl(object)
  • removed: class BatchOperationsImpl(object)
  • removed: constructor ApplyBatchImpl(table, table_args, table_kwargs)
  • removed: constructor BatchOperationsImpl(operations, table_name, schema, recreate, copy_from, table_args, table_kwargs, reflect_args, reflect_kwargs, naming_convention)
  • removed: method ApplyBatchImpl.add_column(table_name, column, **kw)
  • removed: method ApplyBatchImpl.add_constraint(const)
  • removed: method ApplyBatchImpl.alter_column(table_name, column_name, nullable=…, server_default=…, name=…, type_=…, autoincrement=…, **kw)
  • removed: method ApplyBatchImpl.create_index(idx)
  • removed: method ApplyBatchImpl.drop_column(table_name, column, **kw)
  • removed: method ApplyBatchImpl.drop_constraint(const)
  • removed: method ApplyBatchImpl.drop_index(idx)
  • removed: method ApplyBatchImpl.rename_table(*arg, **kw)
  • removed: method BatchOperationsImpl.add_column(*arg, **kw)
  • removed: method BatchOperationsImpl.add_constraint(const)
  • removed: method BatchOperationsImpl.alter_column(*arg, **kw)
  • removed: method BatchOperationsImpl.create_index(idx)
  • removed: method BatchOperationsImpl.create_table(table)
  • removed: method BatchOperationsImpl.drop_column(*arg, **kw)
  • removed: method BatchOperationsImpl.drop_constraint(const)
  • removed: method BatchOperationsImpl.drop_index(idx)
  • removed: method BatchOperationsImpl.drop_table(table)
  • removed: method BatchOperationsImpl.flush()
  • removed: method BatchOperationsImpl.rename_table(*arg, **kw)
  • removed: property BatchOperationsImpl.dialect
  • removed: property BatchOperationsImpl.impl
  • changed: function revision(config, message=…, autogenerate=…, sql=…, head=…, splice=…, branch_label=…, version_path=…, rev_id=…) → function revision(config, message=…, autogenerate=…, sql=…, head=…, splice=…, branch_label=…, version_path=…, rev_id=…, depends_on=…)
  • added: function edit(config, rev)
  • removed: class ActLikePy3kIO(object)
  • removed: class EncodedIO(EncodedIO)
  • removed: class EncodedIO(io.TextIOWrapper)
  • removed: constructor ActLikePy3kIO(file_)
  • removed: constructor EncodedIO(file_, encoding)
  • removed: field ActLikePy3kIO.closed
  • removed: field ActLikePy3kIO.readable
  • removed: field ActLikePy3kIO.seekable
  • removed: field ActLikePy3kIO.writable
  • removed: function callable(fn)
  • removed: function exec_(func_text, globals_, lcl)
  • removed: function load_module_py(module_id, path)
  • removed: function load_module_pyc(module_id, path)
  • removed: function raise_from_cause(exception, exc_info=…)
  • removed: function reraise(tp, value, tb=…, cause=…)
  • removed: function u(s)
  • removed: function ue(s)
  • removed: function with_metaclass(meta, base=…)
  • removed: method ActLikePy3kIO.flush()
  • removed: method ActLikePy3kIO.write(text)
  • removed: method EncodedIO.close()
  • removed: variable binary_type
  • removed: variable callable
  • removed: variable exec_
  • removed: variable py27
  • removed: variable py2k
  • removed: variable py33
  • removed: variable py3k
  • removed: variable range
  • removed: variable sqla_08
  • removed: variable sqla_09
  • removed: variable string_types
  • removed: variable text_type
  • added: method DefaultImpl.correct_for_autogen_foreignkeys(conn_fks, metadata_fks)
  • changed: method MSSQLImpl.alter_column(table_name, column_name, nullable=…, server_default=…, name=…, type_=…, schema=…, autoincrement=…, existing_type=…, existing_server_default=…, existing_nullable=…, existing_autoincrement=…) → method MSSQLImpl.alter_column(table_name, column_name, nullable=…, server_default=…, name=…, type_=…, schema=…, existing_type=…, existing_server_default=…, existing_nullable=…, **kw)
  • changed: method MySQLImpl.alter_column(table_name, column_name, nullable=…, server_default=…, name=…, type_=…, schema=…, autoincrement=…, existing_type=…, existing_server_default=…, existing_nullable=…, existing_autoincrement=…) → method MySQLImpl.alter_column(table_name, column_name, nullable=…, server_default=…, name=…, type_=…, schema=…, existing_type=…, existing_server_default=…, existing_nullable=…, autoincrement=…, existing_autoincrement=…, **kw)
  • added: method MySQLImpl.correct_for_autogen_foreignkeys(conn_fks, metadata_fks)
  • added: method MySQLImpl.drop_constraint(const)
  • added: class PostgresqlColumnType(AlterColumn)
  • added: constructor PostgresqlColumnType(name, column_name, type_, **kw)
  • added: function visit_column_type(element, compiler, **kw)
  • added: method PostgresqlImpl.alter_column(table_name, column_name, nullable=…, server_default=…, name=…, type_=…, schema=…, autoincrement=…, existing_type=…, existing_server_default=…, existing_nullable=…, existing_autoincrement=…, **kw)
  • removed: class EnvironmentContext(object)
  • removed: constructor EnvironmentContext(config, script, **kw)
  • removed: field EnvironmentContext.config
  • removed: field EnvironmentContext.script
  • removed: method EnvironmentContext.begin_transaction()
  • removed: method EnvironmentContext.configure(connection=…, url=…, dialect_name=…, transactional_ddl=…, transaction_per_migration=…, output_buffer=…, starting_rev=…, tag=…, template_args=…, render_as_batch=…, target_metadata=…, include_symbol=…, include_object=…, include_schemas=…, compare_type=…, compare_server_default=…, render_item=…, literal_binds=…, upgrade_token=…, downgrade_token=…, alembic_module_p…
  • removed: method EnvironmentContext.execute(sql, execution_options=…)
  • removed: method EnvironmentContext.get_bind()
  • removed: method EnvironmentContext.get_context()
  • removed: method EnvironmentContext.get_head_revision()
  • removed: method EnvironmentContext.get_head_revisions()
  • removed: method EnvironmentContext.get_impl()
  • removed: method EnvironmentContext.get_revision_argument()
  • removed: method EnvironmentContext.get_starting_revision_argument()
  • removed: method EnvironmentContext.get_tag_argument()
  • removed: method EnvironmentContext.get_x_argument(as_dictionary=…)
  • removed: method EnvironmentContext.is_offline_mode()
  • removed: method EnvironmentContext.is_transactional_ddl()
  • removed: method EnvironmentContext.requires_connection()
  • removed: method EnvironmentContext.run_migrations(**kw)
  • removed: method EnvironmentContext.static_output(text)
  • removed: class HeadMaintainer(object)
  • removed: class MigrationContext(object)
  • removed: class MigrationStep(object)
  • removed: class RevisionStep(MigrationStep)
  • removed: class StampStep(MigrationStep)
  • removed: constructor HeadMaintainer(context, heads)
  • removed: constructor MigrationContext(dialect, connection, opts, environment_context=…)
  • removed: constructor RevisionStep(revision_map, revision, is_upgrade)
  • removed: constructor StampStep(from_, to_, is_upgrade, branch_move)
  • removed: field StampStep.doc
  • removed: method HeadMaintainer.update_to_step(step)
  • removed: method MigrationContext.begin_transaction(_per_migration=…)
  • removed: method MigrationContext.execute(sql, execution_options=…)
  • removed: method MigrationContext.get_current_heads()
  • removed: method MigrationContext.get_current_revision()
  • removed: method MigrationContext.run_migrations(**kw)
  • removed: method MigrationContext.stamp(script_directory, revision)
  • removed: method RevisionStep.merge_branch_idents(heads)
  • removed: method RevisionStep.should_create_branch(heads)
  • removed: method RevisionStep.should_delete_branch(heads)
  • removed: method RevisionStep.should_merge_branches(heads)
  • removed: method RevisionStep.should_unmerge_branches(heads)
  • removed: method RevisionStep.unmerge_branch_idents(heads)
  • removed: method RevisionStep.update_version_num(heads)
  • removed: method StampStep.merge_branch_idents(heads)
  • removed: method StampStep.should_create_branch(heads)
  • removed: method StampStep.should_delete_branch(heads)
  • removed: method StampStep.should_merge_branches(heads)
  • removed: method StampStep.should_unmerge_branches(heads)
  • removed: method StampStep.stamp_revision(**kw)
  • removed: method StampStep.unmerge_branch_idents(heads)
  • removed: method StampStep.update_version_num(heads)
  • removed: property MigrationContext.bind
  • removed: property MigrationContext.config
  • removed: property MigrationStep.is_downgrade
  • removed: property MigrationStep.name
  • removed: property MigrationStep.short_log
  • removed: property RevisionStep.delete_version_num
  • removed: property RevisionStep.doc
  • removed: property RevisionStep.from_revisions
  • removed: property RevisionStep.insert_version_num
  • removed: property RevisionStep.to_revisions
  • removed: property StampStep.delete_version_num
  • removed: property StampStep.from_revisions
  • removed: property StampStep.insert_version_num
  • removed: property StampStep.to_revisions
  • removed: static method MigrationContext.configure(connection=…, url=…, dialect_name=…, environment_context=…, opts=…)
  • removed: static method MigrationStep.downgrade_from_script(revision_map, script)
  • removed: static method MigrationStep.upgrade_from_script(revision_map, script)
  • removed: variable log
  • removed: class BatchOperations(Operations)
  • removed: class Operations(object)
  • removed: constructor Operations(migration_context, impl=…)
  • removed: method BatchOperations.add_column(column)
  • removed: method BatchOperations.alter_column(column_name, **kw)
  • removed: method BatchOperations.create_check_constraint(name, condition, **kw)
  • removed: method BatchOperations.create_foreign_key(name, referent, local_cols, remote_cols, **kw)
  • removed: method BatchOperations.create_index(name, columns, **kw)
  • removed: method BatchOperations.create_primary_key(name, cols, **kw)
  • removed: method BatchOperations.create_unique_constraint(name, local_cols, **kw)
  • removed: method BatchOperations.drop_column(column_name)
  • removed: method BatchOperations.drop_constraint(name, type_=…)
  • removed: method BatchOperations.drop_index(name, **kw)
  • removed: method Operations.add_column(table_name, column, schema=…)
  • removed: method Operations.alter_column(table_name, column_name, nullable=…, server_default=…, new_column_name=…, type_=…, autoincrement=…, existing_type=…, existing_server_default=…, existing_nullable=…, existing_autoincrement=…, schema=…)
  • removed: method Operations.batch_alter_table(table_name, schema=…, recreate=…, copy_from=…, table_args=…, table_kwargs=…, reflect_args=…, reflect_kwargs=…, naming_convention=…)
  • removed: method Operations.bulk_insert(table, rows, multiinsert=…)
  • removed: method Operations.create_check_constraint(name, source, condition, schema=…, **kw)
  • removed: method Operations.create_foreign_key(name, source, referent, local_cols, remote_cols, onupdate=…, ondelete=…, deferrable=…, initially=…, match=…, source_schema=…, referent_schema=…, **dialect_kw)
  • removed: method Operations.create_index(name, table_name, columns, schema=…, unique=…, quote=…, **kw)
  • removed: method Operations.create_primary_key(name, table_name, cols, schema=…)
  • removed: method Operations.create_table(name, *columns, **kw)
  • removed: method Operations.create_unique_constraint(name, source, local_cols, schema=…, **kw)
  • removed: method Operations.drop_column(table_name, column_name, **kw)
  • removed: method Operations.drop_constraint(name, table_name, type_=…, schema=…)
  • removed: method Operations.drop_index(name, table_name=…, schema=…)
  • removed: method Operations.drop_table(name, **kw)
  • removed: method Operations.execute(sql, execution_options=…)
  • removed: method Operations.f(name)
  • removed: method Operations.get_bind()
  • removed: method Operations.get_context()
  • removed: method Operations.inline_literal(value, type_=…)
  • removed: method Operations.rename_table(old_table_name, new_table_name, schema=…)
  • removed: static method Operations.context(migration_context)
  • added: export BatchOperations
  • added: export MigrateOperation
  • added: export Operations
  • added: class BatchOperations(Operations)
  • added: class Operations(util.ModuleClsProxy)
  • added: constructor Operations(migration_context, impl=…)
  • added: method Operations.batch_alter_table(table_name, schema=…, recreate=…, copy_from=…, table_args=…, table_kwargs=…, reflect_args=…, reflect_kwargs=…, naming_convention=…)
  • added: method Operations.f(name)
  • added: method Operations.get_bind()
  • added: method Operations.get_context()
  • added: method Operations.inline_literal(value, type_=…)
  • added: method Operations.invoke(operation)
  • added: static method Operations.context(migration_context)
  • added: static method Operations.implementation_for(op_cls)
  • added: static method Operations.register_operation(name, sourcename=…)
  • added: class ApplyBatchImpl(object)
  • added: class BatchOperationsImpl(object)
  • added: constructor ApplyBatchImpl(table, table_args, table_kwargs, reflected)
  • added: constructor BatchOperationsImpl(operations, table_name, schema, recreate, copy_from, table_args, table_kwargs, reflect_args, reflect_kwargs, naming_convention)
  • added: method ApplyBatchImpl.add_column(table_name, column, **kw)
  • added: method ApplyBatchImpl.add_constraint(const)
  • added: method ApplyBatchImpl.alter_column(table_name, column_name, nullable=…, server_default=…, name=…, type_=…, autoincrement=…, **kw)
  • added: method ApplyBatchImpl.create_index(idx)
  • added: method ApplyBatchImpl.drop_column(table_name, column, **kw)
  • added: method ApplyBatchImpl.drop_constraint(const)
  • added: method ApplyBatchImpl.drop_index(idx)
  • added: method ApplyBatchImpl.rename_table(*arg, **kw)
  • added: method BatchOperationsImpl.add_column(*arg, **kw)
  • added: method BatchOperationsImpl.add_constraint(const)
  • added: method BatchOperationsImpl.alter_column(*arg, **kw)
  • added: method BatchOperationsImpl.create_index(idx)
  • added: method BatchOperationsImpl.create_table(table)
  • added: method BatchOperationsImpl.drop_column(*arg, **kw)
  • added: method BatchOperationsImpl.drop_constraint(const)
  • added: method BatchOperationsImpl.drop_index(idx)
  • added: method BatchOperationsImpl.drop_table(table)
  • added: method BatchOperationsImpl.flush()
  • added: method BatchOperationsImpl.rename_table(*arg, **kw)
  • added: property BatchOperationsImpl.dialect
  • added: property BatchOperationsImpl.impl
  • added: class AddColumnOp(AlterTableOp)
  • added: class AddConstraintOp(MigrateOperation)
  • added: class AlterColumnOp(AlterTableOp)
  • added: class AlterTableOp(MigrateOperation)
  • added: class BulkInsertOp(MigrateOperation)
  • added: class CreateCheckConstraintOp(AddConstraintOp)
  • added: class CreateForeignKeyOp(AddConstraintOp)
  • added: class CreateIndexOp(MigrateOperation)
  • added: class CreatePrimaryKeyOp(AddConstraintOp)
  • added: class CreateTableOp(MigrateOperation)
  • added: class CreateUniqueConstraintOp(AddConstraintOp)
  • added: class DowngradeOps(OpContainer)
  • added: class DropColumnOp(AlterTableOp)
  • added: class DropConstraintOp(MigrateOperation)
  • added: class DropIndexOp(MigrateOperation)
  • added: class DropTableOp(MigrateOperation)
  • added: class ExecuteSQLOp(MigrateOperation)
  • added: class MigrateOperation(object)
  • added: class MigrationScript(MigrateOperation)
  • added: class ModifyTableOps(OpContainer)
  • added: class OpContainer(MigrateOperation)
  • added: class RenameTableOp(AlterTableOp)
  • added: class UpgradeOps(OpContainer)
  • added: constructor AddColumnOp(table_name, column, schema=…)
  • added: constructor AlterColumnOp(table_name, column_name, schema=…, existing_type=…, existing_server_default=…, existing_nullable=…, modify_nullable=…, modify_server_default=…, modify_name=…, modify_type=…, **kw)
  • added: constructor AlterTableOp(table_name, schema=…)
  • added: constructor BulkInsertOp(table, rows, multiinsert=…)
  • added: constructor CreateCheckConstraintOp(constraint_name, table_name, condition, schema=…, _orig_constraint=…, **kw)
  • added: constructor CreateForeignKeyOp(constraint_name, source_table, referent_table, local_cols, remote_cols, _orig_constraint=…, **kw)
  • added: constructor CreateIndexOp(index_name, table_name, columns, schema=…, unique=…, _orig_index=…, **kw)
  • added: constructor CreatePrimaryKeyOp(constraint_name, table_name, columns, schema=…, _orig_constraint=…, **kw)
  • added: constructor CreateTableOp(table_name, columns, schema=…, _orig_table=…, **kw)
  • added: constructor CreateUniqueConstraintOp(constraint_name, table_name, columns, schema=…, _orig_constraint=…, **kw)
  • added: constructor DowngradeOps(ops=…, downgrade_token=…)
  • added: constructor DropColumnOp(table_name, column_name, schema=…, _orig_column=…, **kw)
  • added: constructor DropConstraintOp(constraint_name, table_name, type_=…, schema=…, _orig_constraint=…)
  • added: constructor DropIndexOp(index_name, table_name=…, schema=…, _orig_index=…)
  • added: constructor DropTableOp(table_name, schema=…, table_kw=…, _orig_table=…)
  • added: constructor ExecuteSQLOp(sqltext, execution_options=…)
  • added: constructor MigrationScript(rev_id, upgrade_ops, downgrade_ops, message=…, imports=…, head=…, splice=…, branch_label=…, version_path=…, depends_on=…)
  • added: constructor ModifyTableOps(table_name, ops, schema=…)
  • added: constructor OpContainer(ops=…)
  • added: constructor RenameTableOp(old_table_name, new_table_name, schema=…)
  • added: constructor UpgradeOps(ops=…, upgrade_token=…)
  • added: field CreateCheckConstraintOp.constraint_type
  • added: field CreateForeignKeyOp.constraint_type
  • added: field CreatePrimaryKeyOp.constraint_type
  • added: field CreateUniqueConstraintOp.constraint_type
  • added: method AddColumnOp.reverse()
  • added: method AddColumnOp.to_column()
  • added: method AddColumnOp.to_diff_tuple()
  • added: method AddConstraintOp.reverse()
  • added: method AddConstraintOp.to_diff_tuple()
  • added: method AlterColumnOp.has_changes()
  • added: method AlterColumnOp.reverse()
  • added: method AlterColumnOp.to_diff_tuple()
  • added: method CreateCheckConstraintOp.to_constraint(migration_context=…)
  • added: method CreateForeignKeyOp.to_constraint(migration_context=…)
  • added: method CreateForeignKeyOp.to_diff_tuple()
  • added: method CreateIndexOp.reverse()
  • added: method CreateIndexOp.to_diff_tuple()
  • added: method CreateIndexOp.to_index(migration_context=…)
  • added: method CreatePrimaryKeyOp.to_constraint(migration_context=…)
  • added: method CreateTableOp.reverse()
  • added: method CreateTableOp.to_diff_tuple()
  • added: method CreateTableOp.to_table(migration_context=…)
  • added: method CreateUniqueConstraintOp.to_constraint(migration_context=…)
  • added: method DowngradeOps.reverse()
  • added: method DropColumnOp.reverse()
  • added: method DropColumnOp.to_column(migration_context=…)
  • added: method DropColumnOp.to_diff_tuple()
  • added: method DropConstraintOp.reverse()
  • added: method DropConstraintOp.to_constraint()
  • added: method DropConstraintOp.to_diff_tuple()
  • added: method DropIndexOp.reverse()
  • added: method DropIndexOp.to_diff_tuple()
  • added: method DropIndexOp.to_index(migration_context=…)
  • added: method DropTableOp.reverse()
  • added: method DropTableOp.to_diff_tuple()
  • added: method DropTableOp.to_table(migration_context=…)
  • added: method MigrateOperation.info()
  • added: method ModifyTableOps.reverse()
  • added: method OpContainer.as_diffs()
  • added: method OpContainer.is_empty()
  • added: method UpgradeOps.reverse()
  • added: method UpgradeOps.reverse_into(downgrade_ops)
  • added: property AddConstraintOp.constraint_type
  • added: property MigrationScript.downgrade_ops
  • added: property MigrationScript.downgrade_ops_list
  • added: property MigrationScript.upgrade_ops
  • added: property MigrationScript.upgrade_ops_list
  • added: static method AddColumnOp.add_column(operations, table_name, column, schema=…)
  • added: static method AddColumnOp.batch_add_column(operations, column)
  • added: static method AddColumnOp.from_column(col)
  • added: static method AddColumnOp.from_column_and_tablename(schema, tname, col)
  • added: static method AddConstraintOp.from_constraint(constraint)
  • added: static method AlterColumnOp.alter_column(operations, table_name, column_name, nullable=…, server_default=…, new_column_name=…, type_=…, existing_type=…, existing_server_default=…, existing_nullable=…, schema=…, **kw)
  • added: static method AlterColumnOp.batch_alter_column(operations, column_name, nullable=…, server_default=…, new_column_name=…, type_=…, existing_type=…, existing_server_default=…, existing_nullable=…, **kw)
  • added: static method BulkInsertOp.bulk_insert(operations, table, rows, multiinsert=…)
  • added: static method CreateCheckConstraintOp.batch_create_check_constraint(operations, constraint_name, condition, **kw)
  • added: static method CreateCheckConstraintOp.create_check_constraint(operations, constraint_name, table_name, condition, schema=…, **kw)
  • added: static method CreateCheckConstraintOp.from_constraint(constraint)
  • added: static method CreateForeignKeyOp.batch_create_foreign_key(operations, constraint_name, referent_table, local_cols, remote_cols, referent_schema=…, onupdate=…, ondelete=…, deferrable=…, initially=…, match=…, **dialect_kw)
  • added: static method CreateForeignKeyOp.create_foreign_key(operations, constraint_name, source_table, referent_table, local_cols, remote_cols, onupdate=…, ondelete=…, deferrable=…, initially=…, match=…, source_schema=…, referent_schema=…, **dialect_kw)
  • added: static method CreateForeignKeyOp.from_constraint(constraint)
  • added: static method CreateIndexOp.batch_create_index(operations, index_name, columns, **kw)
  • added: static method CreateIndexOp.create_index(operations, index_name, table_name, columns, schema=…, unique=…, **kw)
  • added: static method CreateIndexOp.from_index(index)
  • added: static method CreatePrimaryKeyOp.batch_create_primary_key(operations, constraint_name, columns)
  • added: static method CreatePrimaryKeyOp.create_primary_key(operations, constraint_name, table_name, columns, schema=…)
  • added: static method CreatePrimaryKeyOp.from_constraint(constraint)
  • added: static method CreateTableOp.create_table(operations, table_name, *columns, **kw)
  • added: static method CreateTableOp.from_table(table)
  • added: static method CreateUniqueConstraintOp.batch_create_unique_constraint(operations, constraint_name, columns, **kw)
  • added: static method CreateUniqueConstraintOp.create_unique_constraint(operations, constraint_name, table_name, columns, schema=…, **kw)
  • added: static method CreateUniqueConstraintOp.from_constraint(constraint)
  • added: static method DropColumnOp.batch_drop_column(operations, column_name, **kw)
  • added: static method DropColumnOp.drop_column(operations, table_name, column_name, schema=…, **kw)
  • added: static method DropColumnOp.from_column_and_tablename(schema, tname, col)
  • added: static method DropConstraintOp.batch_drop_constraint(operations, constraint_name, type_=…)
  • added: static method DropConstraintOp.drop_constraint(operations, constraint_name, table_name, type_=…, schema=…)
  • added: static method DropConstraintOp.from_constraint(constraint)
  • added: static method DropIndexOp.batch_drop_index(operations, index_name, **kw)
  • added: static method DropIndexOp.drop_index(operations, index_name, table_name=…, schema=…)
  • added: static method DropIndexOp.from_index(index)
  • added: static method DropTableOp.drop_table(operations, table_name, schema=…, **kw)
  • added: static method DropTableOp.from_table(table)
  • added: static method ExecuteSQLOp.execute(operations, sqltext, execution_options=…)
  • added: static method RenameTableOp.rename_table(operations, old_table_name, new_table_name, schema=…)
  • added: class SchemaObjects(object)
  • added: constructor SchemaObjects(migration_context=…)
  • added: method SchemaObjects.check_constraint(name, source, condition, schema=…, **kw)
  • added: method SchemaObjects.column(name, type_, **kw)
  • added: method SchemaObjects.foreign_key_constraint(name, source, referent, local_cols, remote_cols, onupdate=…, ondelete=…, deferrable=…, source_schema=…, referent_schema=…, initially=…, match=…, **dialect_kw)
  • added: method SchemaObjects.generic_constraint(name, table_name, type_, schema=…, **kw)
  • added: method SchemaObjects.index(name, tablename, columns, schema=…, **kw)
  • added: method SchemaObjects.metadata()
  • added: method SchemaObjects.primary_key_constraint(name, table_name, cols, schema=…)
  • added: method SchemaObjects.table(name, *columns, **kw)
  • added: method SchemaObjects.unique_constraint(name, source, local_cols, schema=…, **kw)
  • added: function add_column(operations, operation)
  • added: function alter_column(operations, operation)
  • added: function bulk_insert(operations, operation)
  • added: function create_constraint(operations, operation)
  • added: function create_index(operations, operation)
  • added: function create_table(operations, operation)
  • added: function drop_column(operations, operation)
  • added: function drop_constraint(operations, operation)
  • added: function drop_index(operations, operation)
  • added: function drop_table(operations, operation)
  • added: function execute_sql(operations, operation)
  • added: function rename_table(operations, operation)
  • removed: class MultipleHeads(RevisionError)
  • removed: class RangeNotAncestorError(RevisionError)
  • removed: class ResolutionError(RevisionError)
  • removed: class Revision(object)
  • removed: class RevisionError(Exception)
  • removed: class RevisionMap(object)
  • removed: constructor MultipleHeads(heads, argument)
  • removed: constructor RangeNotAncestorError(lower, upper)
  • removed: constructor Revision(revision, down_revision, dependencies=…, branch_labels=…)
  • removed: constructor RevisionMap(generator)
  • removed: field Revision.branch_labels
  • removed: field Revision.dependencies
  • removed: field Revision.down_revision
  • removed: field Revision.nextrev
  • removed: field Revision.revision
  • removed: function tuple_rev_as_scalar(rev)
  • removed: method Revision.add_nextrev(revision)
  • removed: method RevisionMap.add_revision(revision, _replace=…)
  • removed: method RevisionMap.bases()
  • removed: method RevisionMap.filter_for_lineage(targets, check_against, include_dependencies=…)
  • removed: method RevisionMap.get_current_head(branch_label=…)
  • removed: method RevisionMap.get_revision(id_)
  • removed: method RevisionMap.get_revisions(id_)
  • removed: method RevisionMap.heads()
  • removed: method RevisionMap.iterate_revisions(upper, lower, implicit_base=…, inclusive=…, assert_relative_length=…)
  • removed: property Revision.is_base
  • removed: property Revision.is_branch_point
  • removed: property Revision.is_head
  • removed: property Revision.is_merge_point
  • added: class EnvironmentContext(util.ModuleClsProxy)
  • added: constructor EnvironmentContext(config, script, **kw)
  • added: field EnvironmentContext.config
  • added: field EnvironmentContext.script
  • added: method EnvironmentContext.begin_transaction()
  • added: method EnvironmentContext.configure(connection=…, url=…, dialect_name=…, transactional_ddl=…, transaction_per_migration=…, output_buffer=…, starting_rev=…, tag=…, template_args=…, render_as_batch=…, target_metadata=…, include_symbol=…, include_object=…, include_schemas=…, process_revision_directives=…, compare_type=…, compare_server_default=…, render_item=…, literal_binds=…, upgrade_token=…, down…
  • added: method EnvironmentContext.execute(sql, execution_options=…)
  • added: method EnvironmentContext.get_bind()
  • added: method EnvironmentContext.get_context()
  • added: method EnvironmentContext.get_head_revision()
  • added: method EnvironmentContext.get_head_revisions()
  • added: method EnvironmentContext.get_impl()
  • added: method EnvironmentContext.get_revision_argument()
  • added: method EnvironmentContext.get_starting_revision_argument()
  • added: method EnvironmentContext.get_tag_argument()
  • added: method EnvironmentContext.get_x_argument(as_dictionary=…)
  • added: method EnvironmentContext.is_offline_mode()
  • added: method EnvironmentContext.is_transactional_ddl()
  • added: method EnvironmentContext.requires_connection()
  • added: method EnvironmentContext.run_migrations(**kw)
  • added: method EnvironmentContext.static_output(text)
  • added: class HeadMaintainer(object)
  • added: class MigrationContext(object)
  • added: class MigrationStep(object)
  • added: class RevisionStep(MigrationStep)
  • added: class StampStep(MigrationStep)
  • added: constructor HeadMaintainer(context, heads)
  • added: constructor MigrationContext(dialect, connection, opts, environment_context=…)
  • added: constructor RevisionStep(revision_map, revision, is_upgrade)
  • added: constructor StampStep(from_, to_, is_upgrade, branch_move)
  • added: field StampStep.doc
  • added: method HeadMaintainer.update_to_step(step)
  • added: method MigrationContext.begin_transaction(_per_migration=…)
  • added: method MigrationContext.execute(sql, execution_options=…)
  • added: method MigrationContext.get_current_heads()
  • added: method MigrationContext.get_current_revision()
  • added: method MigrationContext.run_migrations(**kw)
  • added: method MigrationContext.stamp(script_directory, revision)
  • added: method RevisionStep.merge_branch_idents(heads)
  • added: method RevisionStep.should_create_branch(heads)
  • added: method RevisionStep.should_delete_branch(heads)
  • added: method RevisionStep.should_merge_branches(heads)
  • added: method RevisionStep.should_unmerge_branches(heads)
  • added: method RevisionStep.unmerge_branch_idents(heads)
  • added: method RevisionStep.update_version_num(heads)
  • added: method StampStep.merge_branch_idents(heads)
  • added: method StampStep.should_create_branch(heads)
  • added: method StampStep.should_delete_branch(heads)
  • added: method StampStep.should_merge_branches(heads)
  • added: method StampStep.should_unmerge_branches(heads)
  • added: method StampStep.stamp_revision(**kw)
  • added: method StampStep.unmerge_branch_idents(heads)
  • added: method StampStep.update_version_num(heads)
  • added: property MigrationContext.bind
  • added: property MigrationContext.config
  • added: property MigrationStep.is_downgrade
  • added: property MigrationStep.name
  • added: property MigrationStep.short_log
  • added: property RevisionStep.delete_version_num
  • added: property RevisionStep.doc
  • added: property RevisionStep.from_revisions
  • added: property RevisionStep.from_revisions_no_deps
  • added: property RevisionStep.insert_version_num
  • added: property RevisionStep.to_revisions
  • added: property RevisionStep.to_revisions_no_deps
  • added: property StampStep.delete_version_num
  • added: property StampStep.from_revisions
  • added: property StampStep.from_revisions_no_deps
  • added: property StampStep.insert_version_num
  • added: property StampStep.to_revisions
  • added: property StampStep.to_revisions_no_deps
  • added: static method MigrationContext.configure(connection=…, url=…, dialect_name=…, dialect=…, environment_context=…, opts=…)
  • added: static method MigrationStep.downgrade_from_script(revision_map, script)
  • added: static method MigrationStep.upgrade_from_script(revision_map, script)
  • added: variable log
  • removed: class Script(revision.Revision)
  • removed: class ScriptDirectory(object)
  • removed: constructor Script(module, rev_id, path)
  • removed: constructor ScriptDirectory(dir, file_template=…, truncate_slug_length=…, version_locations=…, sourceless=…, output_encoding=…)
  • removed: field Script.module
  • removed: field Script.path
  • removed: method Script.cmd_format(verbose, include_branches=…, include_doc=…, include_parents=…, tree_indicators=…)
  • removed: method ScriptDirectory.as_revision_number(id_)
  • removed: method ScriptDirectory.generate_revision(revid, message, head=…, refresh=…, splice=…, branch_labels=…, version_path=…, depends_on=…, **kw)
  • removed: method ScriptDirectory.get_base()
  • removed: method ScriptDirectory.get_bases()
  • removed: method ScriptDirectory.get_current_head()
  • removed: method ScriptDirectory.get_heads()
  • removed: method ScriptDirectory.get_revision(id_)
  • removed: method ScriptDirectory.get_revisions(id_)
  • removed: method ScriptDirectory.iterate_revisions(upper, lower)
  • removed: method ScriptDirectory.run_env()
  • removed: method ScriptDirectory.walk_revisions(base=…, head=…)
  • removed: property Script.doc
  • removed: property Script.log_entry
  • removed: property Script.longdoc
  • removed: property ScriptDirectory.env_py_location
  • removed: property ScriptDirectory.versions
  • removed: static method ScriptDirectory.from_config(config)
  • added: export Script
  • added: export ScriptDirectory
  • added: class Script(revision.Revision)
  • added: class ScriptDirectory(object)
  • added: constructor Script(module, rev_id, path)
  • added: constructor ScriptDirectory(dir, file_template=…, truncate_slug_length=…, version_locations=…, sourceless=…, output_encoding=…)
  • added: field Script.module
  • added: field Script.path
  • added: method Script.cmd_format(verbose, include_branches=…, include_doc=…, include_parents=…, tree_indicators=…)
  • added: method ScriptDirectory.as_revision_number(id_)
  • added: method ScriptDirectory.generate_revision(revid, message, head=…, refresh=…, splice=…, branch_labels=…, version_path=…, depends_on=…, **kw)
  • added: method ScriptDirectory.get_all_current(id_)
  • added: method ScriptDirectory.get_base()
  • added: method ScriptDirectory.get_bases()
  • added: method ScriptDirectory.get_current_head()
  • added: method ScriptDirectory.get_heads()
  • added: method ScriptDirectory.get_revision(id_)
  • added: method ScriptDirectory.get_revisions(id_)
  • added: method ScriptDirectory.iterate_revisions(upper, lower)
  • added: method ScriptDirectory.run_env()
  • added: method ScriptDirectory.walk_revisions(base=…, head=…)
  • added: property Script.doc
  • added: property Script.log_entry
  • added: property Script.longdoc
  • added: property ScriptDirectory.env_py_location
  • added: property ScriptDirectory.versions
  • added: static method ScriptDirectory.from_config(config)
  • added: class MultipleHeads(RevisionError)
  • added: class RangeNotAncestorError(RevisionError)
  • added: class ResolutionError(RevisionError)
  • added: class Revision(object)
  • added: class RevisionError(Exception)
  • added: class RevisionMap(object)
  • added: constructor MultipleHeads(heads, argument)
  • added: constructor RangeNotAncestorError(lower, upper)
  • added: constructor ResolutionError(message, argument)
  • added: constructor Revision(revision, down_revision, dependencies=…, branch_labels=…)
  • added: constructor RevisionMap(generator)
  • added: field Revision.branch_labels
  • added: field Revision.dependencies
  • added: field Revision.down_revision
  • added: field Revision.nextrev
  • added: field Revision.revision
  • added: function tuple_rev_as_scalar(rev)
  • added: method Revision.add_nextrev(revision)
  • added: method RevisionMap.add_revision(revision, _replace=…)
  • added: method RevisionMap.bases()
  • added: method RevisionMap.filter_for_lineage(targets, check_against, include_dependencies=…)
  • added: method RevisionMap.get_current_head(branch_label=…)
  • added: method RevisionMap.get_revision(id_)
  • added: method RevisionMap.get_revisions(id_)
  • added: method RevisionMap.heads()
  • added: method RevisionMap.iterate_revisions(upper, lower, implicit_base=…, inclusive=…, assert_relative_length=…, select_for_downgrade=…)
  • added: property Revision.is_base
  • added: property Revision.is_branch_point
  • added: property Revision.is_head
  • added: property Revision.is_merge_point
  • removed: class CommandError(Exception)
  • removed: class immutabledict(dict)
  • removed: class memoized_property(object)
  • removed: constructor immutabledict(*args)
  • removed: constructor memoized_property(fget, doc=…)
  • removed: field immutabledict.clear
  • removed: field immutabledict.pop
  • removed: field immutabledict.popitem
  • removed: field immutabledict.setdefault
  • removed: field immutabledict.update
  • removed: function asbool(value)
  • removed: function coerce_resource_to_filename(fname)
  • removed: function create_module_class_proxy(cls, globals_, locals_)
  • removed: function err(message)
  • removed: function format_as_comma(value)
  • removed: function load_python_file(dir_, filename)
  • removed: function msg(msg, newline=…)
  • removed: function obfuscate_url_pw(u)
  • removed: function pyc_file_from_path(path)
  • removed: function rev_id()
  • removed: function simple_pyc_file_from_path(path)
  • removed: function status(_statmsg, fn, *arg, **kw)
  • removed: function template_to_file(template_file, dest, output_encoding, **kw)
  • removed: function to_tuple(x, default=…)
  • removed: function warn(msg)
  • removed: function write_outstream(stream, *text)
  • removed: method immutabledict.union(d)
  • removed: variable TERMWIDTH
  • removed: variable ioctl
  • removed: variable log
  • removed: variable sqla_07
  • removed: variable sqla_079
  • removed: variable sqla_08
  • removed: variable sqla_083
  • removed: variable sqla_084
  • removed: variable sqla_09
  • removed: variable sqla_092
  • removed: variable sqla_094
  • removed: variable sqla_099
  • removed: variable sqla_100
  • removed: variable sqla_105
  • added: export CommandError
  • added: export Dispatcher
  • added: export ModuleClsProxy
  • added: export asbool
  • added: export coerce_resource_to_filename
  • added: export dedupe_tuple
  • added: export edit
  • added: export err
  • added: export format_as_comma
  • added: export immutabledict
  • added: export load_python_file
  • added: export memoized_property
  • added: export msg
  • added: export obfuscate_url_pw
  • added: export pyc_file_from_path
  • added: export rev_id
  • added: export simple_pyc_file_from_path
  • added: export sqla_07
  • added: export sqla_079
  • added: export sqla_08
  • added: export sqla_083
  • added: export sqla_084
  • added: export sqla_09
  • added: export sqla_092
  • added: export sqla_094
  • added: export sqla_099
  • added: export sqla_100
  • added: export sqla_105
  • added: export sqla_110
  • added: export status
  • added: export template_to_file
  • added: export to_list
  • added: export to_tuple
  • added: export warn
  • added: export write_outstream
  • added: class ActLikePy3kIO(object)
  • added: class EncodedIO(EncodedIO)
  • added: class EncodedIO(io.TextIOWrapper)
  • added: constructor ActLikePy3kIO(file_)
  • added: constructor EncodedIO(file_, encoding)
  • added: field ActLikePy3kIO.closed
  • added: field ActLikePy3kIO.readable
  • added: field ActLikePy3kIO.seekable
  • added: field ActLikePy3kIO.writable
  • added: function callable(fn)
  • added: function exec_(func_text, globals_, lcl)
  • added: function load_module_py(module_id, path)
  • added: function load_module_pyc(module_id, path)
  • added: function raise_from_cause(exception, exc_info=…)
  • added: function reraise(tp, value, tb=…, cause=…)
  • added: function u(s)
  • added: function ue(s)
  • added: function with_metaclass(meta, base=…)
  • added: method ActLikePy3kIO.flush()
  • added: method ActLikePy3kIO.write(text)
  • added: method EncodedIO.close()
  • added: variable binary_type
  • added: variable callable
  • added: variable exec_
  • added: variable py27
  • added: variable py2k
  • added: variable py33
  • added: variable py3k
  • added: variable range
  • added: variable sqla_08
  • added: variable sqla_09
  • added: variable string_types
  • added: variable text_type
  • added: class CommandError(Exception)
  • added: class Dispatcher(object)
  • added: class ModuleClsProxy(with_metaclass(_ModuleClsMeta))
  • added: class immutabledict(dict)
  • added: class memoized_property(object)
  • added: constructor Dispatcher(uselist=…)
  • added: constructor immutabledict(*args)
  • added: constructor memoized_property(fget, doc=…)
  • added: field immutabledict.clear
  • added: field immutabledict.pop
  • added: field immutabledict.popitem
  • added: field immutabledict.setdefault
  • added: field immutabledict.update
  • added: function asbool(value)
  • added: function dedupe_tuple(tup)
  • added: function rev_id()
  • added: function to_list(x, default=…)
  • added: function to_tuple(x, default=…)
  • added: function unique_list(seq, hashfunc=…)
  • added: method Dispatcher.branch()
  • added: method Dispatcher.dispatch(obj, qualifier=…)
  • added: method Dispatcher.dispatch_for(target, qualifier=…)
  • added: method immutabledict.union(d)
  • added: static method ModuleClsProxy.create_module_class_proxy(globals_, locals_)
  • added: function err(message)
  • added: function format_as_comma(value)
  • added: function msg(msg, newline=…)
  • added: function obfuscate_url_pw(u)
  • added: function status(_statmsg, fn, *arg, **kw)
  • added: function warn(msg)
  • added: function write_outstream(stream, *text)
  • added: variable TERMWIDTH
  • added: variable ioctl
  • added: variable log
  • added: function coerce_resource_to_filename(fname)
  • added: function edit(path)
  • added: function load_python_file(dir_, filename)
  • added: function pyc_file_from_path(path)
  • added: function simple_pyc_file_from_path(path)
  • added: function template_to_file(template_file, dest, output_encoding, **kw)
  • added: variable sqla_07
  • added: variable sqla_079
  • added: variable sqla_08
  • added: variable sqla_083
  • added: variable sqla_084
  • added: variable sqla_09
  • added: variable sqla_092
  • added: variable sqla_094
  • added: variable sqla_099
  • added: variable sqla_100
  • added: variable sqla_105
  • added: variable sqla_110