Skip to content

Upgrading alembic 0.6 to 0.7

Unknown0.6.7 → 0.7.7

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: class ApplyBatchImpl(object)
  • added: class BatchOperationsImpl(object)
  • added: constructor ApplyBatchImpl(table, table_args, table_kwargs)
  • 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
  • removed: function splice(config, parent, child)
  • changed: function branches(config) → function branches(config, verbose=…)
  • changed: function current(config, head_only=…) → function current(config, verbose=…, head_only=…)
  • changed: function history(config, rev_range=…) → function history(config, rev_range=…, verbose=…)
  • changed: function revision(config, message=…, autogenerate=…, sql=…) → function revision(config, message=…, autogenerate=…, sql=…, head=…, splice=…, branch_label=…, version_path=…, rev_id=…)
  • added: function heads(config, verbose=…, resolve_dependencies=…)
  • added: function merge(config, revisions, message=…, branch_label=…, rev_id=…)
  • added: function show(config, rev)
  • added: function raise_from_cause(exception, exc_info=…)
  • added: function reraise(tp, value, tb=…, cause=…)
  • added: function ue(s)
  • added: variable py27
  • added: variable range
  • changed: constructor Config(file_=…, ini_section=…, output_buffer=…, stdout=…, cmd_opts=…) → constructor Config(file_=…, ini_section=…, output_buffer=…, stdout=…, cmd_opts=…, config_args=…, attributes=…)
  • added: method Config.attributes()
  • added: method DefaultImpl.autogen_column_reflect(inspector, table, column_info)
  • added: method DefaultImpl.prep_table_for_batch(table)
  • added: method DefaultImpl.requires_recreate_in_batch(batch_op)
  • added: method MySQLImpl.compare_server_default(inspector_column, metadata_column, rendered_metadata_default, rendered_inspector_default)
  • added: method PostgresqlImpl.autogen_column_reflect(inspector, table, column_info)
  • added: method PostgresqlImpl.correct_for_autogen_constraints(conn_unique_constraints, conn_indexes, metadata_unique_constraints, metadata_indexes)
  • added: method PostgresqlImpl.prep_table_for_batch(table)
  • added: variable log
  • added: method SQLiteImpl.requires_recreate_in_batch(batch_op)
  • changed: method EnvironmentContext.configure(connection=…, url=…, dialect_name=…, transactional_ddl=…, transaction_per_migration=…, output_buffer=…, starting_rev=…, tag=…, template_args=…, target_metadata=…, include_symbol=…, include_object=…, include_schemas=…, compare_type=…, compare_server_default=…, render_item=…, upgrade_token=…, downgrade_token=…, alembic_module_prefix=…, sqlalchemy_module_prefix=…,… → 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…
  • added: method EnvironmentContext.get_head_revisions()
  • added: class HeadMaintainer(object)
  • added: class MigrationStep(object)
  • added: class RevisionStep(MigrationStep)
  • added: class StampStep(MigrationStep)
  • added: constructor HeadMaintainer(context, heads)
  • 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.get_current_heads()
  • 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 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.insert_version_num
  • added: property RevisionStep.to_revisions
  • added: property StampStep.delete_version_num
  • added: property StampStep.from_revisions
  • added: property StampStep.insert_version_num
  • added: property StampStep.to_revisions
  • added: static method MigrationStep.downgrade_from_script(revision_map, script)
  • added: static method MigrationStep.upgrade_from_script(revision_map, script)
  • changed: constructor Operations(migration_context) → constructor Operations(migration_context, impl=…)
  • changed: method Operations.create_index(name, table_name, columns, schema=…, **kw) → method Operations.create_index(name, table_name, columns, schema=…, unique=…, quote=…, **kw)
  • added: class BatchOperations(Operations)
  • added: method BatchOperations.add_column(column)
  • added: method BatchOperations.alter_column(column_name, **kw)
  • added: method BatchOperations.create_check_constraint(name, condition, **kw)
  • added: method BatchOperations.create_foreign_key(name, referent, local_cols, remote_cols, **kw)
  • added: method BatchOperations.create_index(name, columns, **kw)
  • added: method BatchOperations.create_primary_key(name, cols, **kw)
  • added: method BatchOperations.create_unique_constraint(name, local_cols, **kw)
  • added: method BatchOperations.drop_column(column_name)
  • added: method BatchOperations.drop_constraint(name, type_=…)
  • added: method BatchOperations.drop_index(name, **kw)
  • added: method Operations.batch_alter_table(table_name, schema=…, recreate=…, copy_from=…, table_args=…, table_kwargs=…, reflect_args=…, reflect_kwargs=…, naming_convention=…)
  • 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 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=…)
  • added: property Revision.is_base
  • added: property Revision.is_branch_point
  • added: property Revision.is_head
  • added: property Revision.is_merge_point
  • removed: field Script.down_revision
  • removed: field Script.nextrev
  • removed: field Script.revision
  • removed: method Script.add_nextrev(rev)
  • removed: property Script.is_branch_point
  • removed: property Script.is_head
  • changed: class Script(object) → class Script(revision.Revision)
  • changed: constructor ScriptDirectory(dir, file_template=…, truncate_slug_length=…, sourceless=…) → constructor ScriptDirectory(dir, file_template=…, truncate_slug_length=…, version_locations=…, sourceless=…, output_encoding=…)
  • changed: method ScriptDirectory.generate_revision(revid, message, refresh=…, **kw) → method ScriptDirectory.generate_revision(revid, message, head=…, refresh=…, splice=…, branch_labels=…, version_path=…, depends_on=…, **kw)
  • added: method Script.cmd_format(verbose, include_branches=…, include_doc=…, include_parents=…, tree_indicators=…)
  • added: method ScriptDirectory.get_bases()
  • added: method ScriptDirectory.get_revisions(id_)
  • added: property ScriptDirectory.versions
  • changed: function template_to_file(template_file, dest, **kw) → function template_to_file(template_file, dest, output_encoding, **kw)
  • added: function format_as_comma(value)
  • added: function to_tuple(x, default=…)
  • added: variable sqla_079
  • added: variable sqla_083
  • added: variable sqla_084
  • added: variable sqla_099
  • added: variable sqla_100
  • added: variable sqla_105