Upgrading alembic 0.1 to 0.2
Unknown0.1.1 → 0.2.2
UnknownUpgrade verdict
DepDelta hasn't looked for this range's notes yet, so breaking changes can't be ruled out.
In plain terms
- DepDelta hasn't finished looking for the notes in this range, so it can't rule out breaking changes yet.
Must act Unknown for releases without notes
Releases without notes may still need changes. Check their commits before upgrading.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- added:
export context - added:
export op
- changed:
function produce_migration_diffs(template_args, imports) → function produce_migration_diffs(context, template_args, imports)
- changed:
constructor Config(file_, ini_section=…, output_buffer=…) → constructor Config(file_=…, ini_section=…, output_buffer=…) - added:
method Config.remove_main_option(name) - added:
method Config.set_section_option(section, name, value)
- removed:
class Context(object) - removed:
constructor Context(dialect, script, connection, fn, as_sql=…, output_buffer=…, transactional_ddl=…, starting_rev=…, compare_type=…, compare_server_default=…) - removed:
function begin_transaction() - removed:
function configure(connection=…, url=…, dialect_name=…, transactional_ddl=…, output_buffer=…, starting_rev=…, tag=…, target_metadata=…, compare_type=…, compare_server_default=…, upgrade_token=…, downgrade_token=…, alembic_module_prefix=…, sqlalchemy_module_prefix=…, **kw) - removed:
function configure_connection(connection) - removed:
function execute(sql) - removed:
function get_bind() - removed:
function get_context() - removed:
function get_head_revision() - removed:
function get_impl() - removed:
function get_revision_argument() - removed:
function get_starting_revision_argument() - removed:
function get_tag_argument() - removed:
function is_offline_mode() - removed:
function is_transactional_ddl() - removed:
function requires_connection() - removed:
function run_migrations(**kw) - removed:
function static_output(text) - removed:
method Context.compare_server_default(inspector_column, metadata_column, rendered_metadata_default) - removed:
method Context.compare_type(inspector_column, metadata_column) - removed:
method Context.execute(sql) - removed:
method Context.run_migrations(**kw) - removed:
property Context.bind - removed:
variable config - removed:
variable log
- changed:
method DefaultImpl.execute(sql) → method DefaultImpl.execute(sql, execution_options=…)
- added:
function visit_column_type(element, compiler, **kw)
- added:
class EnvironmentContext(object) - 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=…, output_buffer=…, starting_rev=…, tag=…, target_metadata=…, compare_type=…, compare_server_default=…, upgrade_token=…, downgrade_token=…, alembic_module_prefix=…, sqlalchemy_module_prefix=…, **kw) - 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_impl() - added:
method EnvironmentContext.get_revision_argument() - added:
method EnvironmentContext.get_starting_revision_argument() - added:
method EnvironmentContext.get_tag_argument() - 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:
variable configure
- added:
class MigrationContext(object) - added:
constructor MigrationContext(dialect, connection, opts) - added:
method MigrationContext.compare_server_default(inspector_column, metadata_column, rendered_metadata_default) - added:
method MigrationContext.compare_type(inspector_column, metadata_column) - added:
method MigrationContext.execute(sql) - added:
method MigrationContext.run_migrations(**kw) - added:
property MigrationContext.bind - added:
static method MigrationContext.configure(connection=…, url=…, dialect_name=…, opts=…) - added:
variable log
- removed:
function add_column(table_name, column) - removed:
function alter_column(table_name, column_name, nullable=…, server_default=…, name=…, type_=…, existing_type=…, existing_server_default=…, existing_nullable=…) - removed:
function bulk_insert(table, rows) - removed:
function create_check_constraint(name, source, condition, **kw) - removed:
function create_foreign_key(name, source, referent, local_cols, remote_cols) - removed:
function create_index(name, tablename, *columns, **kw) - removed:
function create_table(name, *columns, **kw) - removed:
function create_unique_constraint(name, source, local_cols, **kw) - removed:
function drop_column(table_name, column_name, **kw) - removed:
function drop_constraint(name, tablename) - removed:
function drop_index(name) - removed:
function drop_table(name) - removed:
function execute(sql) - removed:
function get_bind() - removed:
function inline_literal(value, type_=…) - removed:
function rename_table(old_table_name, new_table_name, schema=…)
- added:
class Operations(object) - added:
constructor Operations(migration_context) - added:
method Operations.add_column(table_name, column) - added:
method Operations.alter_column(table_name, column_name, nullable=…, server_default=…, name=…, type_=…, existing_type=…, existing_server_default=…, existing_nullable=…) - added:
method Operations.bulk_insert(table, rows) - added:
method Operations.create_check_constraint(name, source, condition, **kw) - added:
method Operations.create_foreign_key(name, source, referent, local_cols, remote_cols, onupdate=…, ondelete=…) - added:
method Operations.create_index(name, tablename, *columns, **kw) - added:
method Operations.create_table(name, *columns, **kw) - added:
method Operations.create_unique_constraint(name, source, local_cols, **kw) - added:
method Operations.drop_column(table_name, column_name, **kw) - added:
method Operations.drop_constraint(name, tablename) - added:
method Operations.drop_index(name, tablename=…) - added:
method Operations.drop_table(name) - added:
method Operations.execute(sql, execution_options=…) - added:
method Operations.get_bind() - added:
method Operations.get_context() - added:
method Operations.inline_literal(value, type_=…) - added:
method Operations.rename_table(old_table_name, new_table_name, schema=…) - added:
static method Operations.context(migration_context)
- removed:
method ScriptDirectory.write(rev_id, content) - changed:
constructor Script(module, rev_id) → constructor Script(module, rev_id, path) - changed:
constructor ScriptDirectory(dir) → constructor ScriptDirectory(dir, file_template=…) - changed:
method ScriptDirectory.downgrade_to(destination, current_rev) → method ScriptDirectory.downgrade_to(destination, current_rev, context) - changed:
method ScriptDirectory.upgrade_from(destination, current_rev) → method ScriptDirectory.upgrade_from(destination, current_rev, context)
- removed:
class CommandError(Exception) - removed:
class memoized_property(object) - removed:
constructor memoized_property(fget, doc=…) - removed:
function err(message) - 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 requires_07(feature) - removed:
function rev_id() - removed:
function status(_statmsg, fn, *arg, **kw) - removed:
function template_to_file(template_file, dest, **kw) - removed:
function warn(msg) - removed:
variable sqla_06 - removed:
variable sqla_07 - removed:
variable width