| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
variables to file_template. #59
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"revision_environment=true", causes env.py to
be run unconditionally when the "revision" command
is run, to support script.py.mako templates with
dependencies on custom "template_args".
- [feature] Added "template_args" option to configure()
so that an env.py can add additional arguments
to the template context when running the
"revision" command. This requires either --autogenerate
or the configuration directive "revision_environment=true".
|
|
|
|
|
|
| |
identifiers, i.e. "alembic upgrade +2",
"alembic downgrade -1". Courtesy
Atsushi Odagiri for this feature.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- [general] The focus of 0.3 is to clean up
and more fully document the public API of Alembic,
including better accessors on the MigrationContext
and ScriptDirectory objects. Methods that are
not considered to be public on these objects have
been underscored, and methods which should be public
have been cleaned up and documented, including:
MigrationContext.get_current_revision()
ScriptDirectory.iterate_revisions()
ScriptDirectory.get_current_head()
ScriptDirectory.get_heads()
ScriptDirectory.get_base()
ScriptDirectory.generate_revision()
- [feature] Added a bit of autogenerate to the
public API in the form of the function
alembic.autogenerate.compare_metadata.
|
|
|
|
|
|
|
| |
by pkg_resources.resource_filename(), if
it is a non-absolute URI that contains
colons. This scheme is the same
one used by Pyramid. [#29]
|
| |
|
|
|
|
|
| |
with an accurate system of reflecting the Operations and
EnvironmentContext methods into them.
|
|\ |
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
| |
namespaces
need to be there fully and in particular "context" needs to be
a proxy object, as env.py may have dependencies which live beyond the
scope of the migration script. Will have to try to make
these proxies as straightforward as possible.
- more architecture docs
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
a debate worth having...probably clearer too
|
|
|
|
|
| |
- doc updates, corrections
- script uses CommandError consistently
|
| |
|
| |
|
|
|
|
|
|
|
| |
autogenerate_sqlalchemy_prefix
to sqlalchemy_module_prefix
- add create_check_constraint() directive
|
|
|
|
|
|
|
|
|
|
|
|
| |
PG context in particular does some tricks to help these.
- But since type/default comparison is still loaded with surprises,
particularly the MySQL/MSSQL TINYINT/BIT-> boolean thing which we
can work around but haven't yet, turn both off by default. They
aren't super useful compared to the huge number of wrong results
they can currently emit.
- Also add a plugin system for type/server default comparison.
- everything works but we're coding way ahead of tests at this
point
|
| |
|
|
|
|
|
| |
- fix --sql examples to use is_offline_mode(), new env.py
format
|
|
|
|
| |
- add an alter column autogen test with an FK constraint
|
|
|
|
|
|
|
| |
- note about unicode
- dont need importlater
- use correct type_ kw arg
- log cols/tables/etc as we autogenerate
|
|
|
|
|
|
|
| |
- add known status to CHANGES
- google group
- sa. prefix on modify type in autogenerate
- rename_table
|
| |
|
|
|
|
| |
- host on packages.python.org
|
|
|
|
|
|
|
| |
- document most op methods
- add support for create_index, drop_index
- remove needless arguments from drop_table
- propagate arguemnts to UniqueConstraint
|
| |
|
|
|
|
|
|
|
| |
- more docs
- get env.py to work in --sql mode even without the DBAPI installed,
using just the URL
- add get_section_option()
|
|
|
|
|
| |
mediates at a high level, into ddl/impl, which deals with DB stuff
- fix MSSQL add column, #2
|
| |
|
|
|
|
|
|
| |
- more environment functions
- clean up start:end system
- docs
|
| |
|
|
|
|
|
|
|
|
|
| |
- overhaul context + env so that --sql mode truly does
not make any SQL connections of any kind. The env.py
scripts create the engine and use it as the source of
a "dialect" - the "dialect" is now passed straight to the context.
- more power to env - can set output buffer, transactional ddl flag,
execute SQL via context instead of needing to import op
|
| |
|
| |
|
| |
|
|
|