]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/log
thirdparty/sqlalchemy/alembic.git
11 years ago- support SQLAlchemy ticket 2742 by ensuring that expressions in DDL are rendered
Mike Bayer [Wed, 13 Nov 2013 15:03:55 +0000 (10:03 -0500)] 
- support SQLAlchemy ticket 2742 by ensuring that expressions in DDL are rendered
(at least in indexes for now) using literal_binds=True, resolve #155

11 years ago- also need requirements file for rtd
Mike Bayer [Sat, 9 Nov 2013 18:23:53 +0000 (13:23 -0500)] 
- also need requirements file for rtd

11 years ago- use pypi-based changelog
Mike Bayer [Sat, 9 Nov 2013 18:02:09 +0000 (13:02 -0500)] 
- use pypi-based changelog

11 years agoMerge pull request #6 from ijl/issue_141
mike bayer [Tue, 15 Oct 2013 17:41:02 +0000 (10:41 -0700)] 
Merge pull request #6 from ijl/issue_141

Fix #141: SQLA 0.7 compatibility for index column names

11 years agoMerge pull request #7 from ijl/issue_149
mike bayer [Tue, 15 Oct 2013 17:30:45 +0000 (10:30 -0700)] 
Merge pull request #7 from ijl/issue_149

Fix #149: bulk_insert example does not import op like other examples

11 years agoFix #149: bulk_insert example does not import op like other examples
ijl [Tue, 15 Oct 2013 15:40:49 +0000 (11:40 -0400)] 
Fix #149: bulk_insert example does not import op like other examples

11 years agoFix #141: SQLA 0.7 compatibility for index column names
ijl [Tue, 15 Oct 2013 15:29:53 +0000 (11:29 -0400)] 
Fix #141: SQLA 0.7 compatibility for index column names

11 years agofix changelog #150
Mike Bayer [Mon, 14 Oct 2013 14:15:29 +0000 (10:15 -0400)] 
fix changelog #150

11 years ago- fix the change we did in 56a178d2181c84ab8bf2edbe6fdf8439f4 so that the unique...
Mike Bayer [Fri, 11 Oct 2013 21:14:28 +0000 (17:14 -0400)] 
- fix the change we did in 56a178d2181c84ab8bf2edbe6fdf8439f4 so that the unique constraint/index thing
on PG still works
- replicate the index test for PG

11 years ago- use a "signature" for unique constraints so that we can also check on
Mike Bayer [Tue, 8 Oct 2013 21:08:48 +0000 (17:08 -0400)] 
- use a "signature" for unique constraints so that we can also check on
non-named unique constraints, e.g. those made by the unique=True flag

11 years ago- correct for bad booleans coming from SQLA metadata/reflection for the index.unique...
Mike Bayer [Mon, 7 Oct 2013 15:21:33 +0000 (11:21 -0400)] 
- correct for bad booleans coming from SQLA metadata/reflection for the index.unique flag,

11 years ago- for newly added tables, run compare_indexes with None for conn_table
Mike Bayer [Mon, 7 Oct 2013 15:14:29 +0000 (11:14 -0400)] 
- for newly added tables, run compare_indexes with None for conn_table
so that we get those table's indexes added as separate create index
steps.

11 years agochangelog
Mike Bayer [Fri, 27 Sep 2013 03:15:12 +0000 (23:15 -0400)] 
changelog

11 years agoMerged in cwilkes/alembic (pull request #8)
Mike Bayer [Fri, 27 Sep 2013 03:12:15 +0000 (23:12 -0400)] 
Merged in cwilkes/alembic (pull request #8)

Use the next() function instead of .next() for python3

11 years agoUse the next() function instead of .next() for python3
Chris Wilkes [Fri, 27 Sep 2013 02:56:24 +0000 (19:56 -0700)] 
Use the next() function instead of .next() for python3

11 years agofix typo, also this is apparently not covered
Mike Bayer [Sat, 14 Sep 2013 16:08:32 +0000 (12:08 -0400)] 
fix typo, also this is apparently not covered

11 years agoadd correct docs for how to override rendering of types
Mike Bayer [Sun, 8 Sep 2013 21:10:57 +0000 (17:10 -0400)] 
add correct docs for how to override rendering of types

11 years ago- refactor autogeneration into its own package
Mike Bayer [Sun, 8 Sep 2013 21:04:17 +0000 (17:04 -0400)] 
- refactor autogeneration into its own package
- remove any implicit naming of unique constraints - only explcitly named constraints
are supported by autogenerate
- ensure we correctly handle the case where unique reflection raises not implemented
- fix some naming conventions, changes to expressions for readability

11 years agochangelog
Mike Bayer [Sun, 8 Sep 2013 19:55:29 +0000 (15:55 -0400)] 
changelog

11 years ago- add autogenerate support for indexes and unique constraints,
Mike Bayer [Sun, 8 Sep 2013 19:48:14 +0000 (15:48 -0400)] 
- add autogenerate support for indexes and unique constraints,
courtesy ijl.  #107

11 years agoMerged in dairiki/alembic/py26-no-encode-kwargs (pull request #6)
Mike Bayer [Fri, 6 Sep 2013 23:16:24 +0000 (19:16 -0400)] 
Merged in dairiki/alembic/py26-no-encode-kwargs (pull request #6)

The str.encode() method does not accept keyword args in python < 2.7

11 years agoMerged in obeattie/alembic (pull request #7)
Mike Bayer [Thu, 5 Sep 2013 18:17:04 +0000 (14:17 -0400)] 
Merged in obeattie/alembic (pull request #7)

More informative error message when trying to retrieve a single head, but there are multiple.

11 years agoFix missing space
Oliver Beattie [Thu, 5 Sep 2013 16:06:42 +0000 (17:06 +0100)] 
Fix missing space

11 years agoMore informative error message when trying to retrieve a single head, but there are...
Oliver Beattie [Thu, 5 Sep 2013 16:03:24 +0000 (17:03 +0100)] 
More informative error message when trying to retrieve a single head, but there are multiple.

11 years agouse mock from local namespace
Mike Bayer [Mon, 2 Sep 2013 16:02:58 +0000 (12:02 -0400)] 
use mock from local namespace

11 years agoThe str.encode() method does not accept keyword args in python < 2.7
Jeff Dairiki [Sun, 1 Sep 2013 09:33:50 +0000 (02:33 -0700)] 
The str.encode() method does not accept keyword args in python < 2.7

11 years agochangelog for pullreq #4
Mike Bayer [Wed, 28 Aug 2013 21:52:53 +0000 (17:52 -0400)] 
changelog for pullreq #4

11 years agoMerged in mvschaik/alembic/fix_custom_compare_type (pull request #4)
Mike Bayer [Wed, 28 Aug 2013 21:46:21 +0000 (17:46 -0400)] 
Merged in mvschaik/alembic/fix_custom_compare_type (pull request #4)

Fix calling of custom type compare function

11 years agoSimplified tests
Maarten van Schaik [Wed, 28 Aug 2013 21:43:52 +0000 (23:43 +0200)] 
Simplified tests

11 years agoAdd unittests for custom compare_type function
Maarten van Schaik [Wed, 28 Aug 2013 15:57:00 +0000 (17:57 +0200)] 
Add unittests for custom compare_type function

11 years agoUpdate documentation
Maarten van Schaik [Wed, 28 Aug 2013 08:37:39 +0000 (10:37 +0200)] 
Update documentation

11 years agoFix calling of custom type compare function
Maarten van Schaik [Wed, 28 Aug 2013 08:15:18 +0000 (10:15 +0200)] 
Fix calling of custom type compare function

11 years agosome u's coming in due to the naming change in 0.9
Mike Bayer [Wed, 28 Aug 2013 03:53:52 +0000 (23:53 -0400)] 
some u's coming in due to the naming change in 0.9

11 years agochangelog
Mike Bayer [Sun, 25 Aug 2013 16:03:07 +0000 (12:03 -0400)] 
changelog

11 years agoMerged in salesseek/alembic/deferrable-create-foreign-key-op (pull request #2)
Mike Bayer [Sun, 25 Aug 2013 16:00:15 +0000 (12:00 -0400)] 
Merged in salesseek/alembic/deferrable-create-foreign-key-op (pull request #2)

Support 'deferrable' keyword argument for 'create_foreign_key' operation.

11 years agoSupport 'deferrable' keyword argument for 'create_foreign_key' operation.
Pedro Romano [Sun, 25 Aug 2013 11:35:16 +0000 (12:35 +0100)] 
Support 'deferrable' keyword argument for 'create_foreign_key' operation.

11 years agoneed to use SQLA's approach of calling mock from unittest for py3k
Mike Bayer [Fri, 23 Aug 2013 23:12:59 +0000 (19:12 -0400)] 
need to use SQLA's approach of calling mock from unittest for py3k

11 years agotests require mock...
Mike Bayer [Fri, 23 Aug 2013 18:35:43 +0000 (14:35 -0400)] 
tests require mock...

11 years ago- Ensured that strings going to stdout go through an encode/decode phase,
Mike Bayer [Fri, 23 Aug 2013 17:25:31 +0000 (13:25 -0400)] 
- Ensured that strings going to stdout go through an encode/decode phase,
so that any non-ASCII characters get to the output stream correctly
in both Py2k and Py3k.   Also added source encoding detection using
Mako's parse_encoding() routine in Py2k so that the __doc__ of a
non-ascii revision file can be treated as unicode in Py2k.

12 years ago0.6.0 release rel_0_6_0
Mike Bayer [Fri, 19 Jul 2013 21:17:30 +0000 (17:17 -0400)] 
0.6.0 release

12 years agoMerge pull request #1 from cacilhas/master
mike bayer [Thu, 18 Jul 2013 16:58:03 +0000 (09:58 -0700)] 
Merge pull request #1 from cacilhas/master

bugfix: close forgotten file descriptors

12 years agoMerged in sirscottthegreat/alembic/bugfixes/env_logger (pull request #1)
Mike Bayer [Mon, 15 Jul 2013 17:53:45 +0000 (13:53 -0400)] 
Merged in sirscottthegreat/alembic/bugfixes/env_logger (pull request #1)

Make the multidb env logger appear in default output.

12 years agoMake the multidb env logger appear in default output.
Scott Sturdivant [Mon, 15 Jul 2013 17:23:53 +0000 (11:23 -0600)] 
Make the multidb env logger appear in default output.

12 years agoAdded new kw argument to :meth:`.EnvironmentContext.configure`
Mike Bayer [Thu, 11 Jul 2013 23:07:14 +0000 (19:07 -0400)] 
Added new kw argument to :meth:`.EnvironmentContext.configure`
``include_object``.  This is a more flexible version of the
``include_symbol`` argument which allows filtering of columns as well as tables
from the autogenerate process,
and in the future will also work for types, constraints and
other constructs.  The fully constructed schema object is passed,
including its name and type as well as a flag indicating if the object
is from the local application metadata or is reflected.

12 years agobugfix: close forgotten file descriptors
Cacilhας, La Batalema [Thu, 11 Jul 2013 18:46:16 +0000 (15:46 -0300)] 
bugfix: close forgotten file descriptors

12 years agoThe output of the ``alembic history`` command is now
Mike Bayer [Wed, 26 Jun 2013 21:08:32 +0000 (17:08 -0400)] 
The output of the ``alembic history`` command is now
expanded to show information about each change on multiple
lines, including the full top message,
resembling the formatting of git log.

12 years ago- add docs and links and stuff for the -x option, which apparently
Mike Bayer [Fri, 7 Jun 2013 01:39:29 +0000 (21:39 -0400)] 
- add docs and links and stuff for the -x option, which apparently
we had ticketed as #120

12 years ago- Added :attr:`alembic.config.Config.cmd_opts` attribute,
Mike Bayer [Sun, 2 Jun 2013 05:45:20 +0000 (01:45 -0400)] 
- Added :attr:`alembic.config.Config.cmd_opts` attribute,
allows access to the `argparse` options passed to the
`alembic` runner.

- Added new command line argument ``-x``, allows extra arguments
to be appended to the command line which can be consumed
within an ``env.py`` script by looking at
``context.config.cmd_opts.x``.

12 years ago- add name here to be inserted in the argument
Mike Bayer [Sun, 2 Jun 2013 05:41:43 +0000 (01:41 -0400)] 
- add name here to be inserted in the argument

12 years agoput the correct base version here of sqla
Mike Bayer [Fri, 24 May 2013 23:25:35 +0000 (19:25 -0400)] 
put the correct base version here of sqla

12 years agoAdded support for options like "name" etc. to be rendered
Mike Bayer [Thu, 16 May 2013 18:41:13 +0000 (14:41 -0400)] 
Added support for options like "name" etc. to be rendered
within CHECK constraints in autogenerate.  Courtesy
Sok Ann Yap.  #125

12 years agoall these pullreqs aren't linkable anymore
Mike Bayer [Thu, 16 May 2013 05:20:06 +0000 (01:20 -0400)] 
all these pullreqs aren't linkable anymore

12 years agoannounce git move
Mike Bayer [Thu, 16 May 2013 00:47:28 +0000 (20:47 -0400)] 
announce git move

12 years ago- update dot files for git
Mike Bayer [Thu, 16 May 2013 00:40:12 +0000 (20:40 -0400)] 
- update dot files for git

12 years agofix test failure regarding pypy
Mike Bayer [Wed, 15 May 2013 23:58:22 +0000 (19:58 -0400)] 
fix test failure regarding pypy

12 years agoadd postgresql_where test
Mike Bayer [Wed, 24 Apr 2013 14:39:25 +0000 (10:39 -0400)] 
add postgresql_where test

12 years agodev tag
Mike Bayer [Thu, 18 Apr 2013 20:26:03 +0000 (16:26 -0400)] 
dev tag

12 years agoRepaired autogenerate rendering of ForeignKeyConstraint
Mike Bayer [Mon, 15 Apr 2013 15:22:37 +0000 (11:22 -0400)] 
Repaired autogenerate rendering of ForeignKeyConstraint
to include use_alter argument, if present.

12 years ago- fix version number in docs here
Mike Bayer [Sun, 14 Apr 2013 23:03:48 +0000 (19:03 -0400)] 
- fix version number in docs here
- add py3.3 compat, other compat to remove all warnings

12 years agoclose
Mike Bayer [Sun, 14 Apr 2013 22:50:29 +0000 (18:50 -0400)] 
close

12 years ago- rework the -r flag on history to make use of existing walk_revisions();
Mike Bayer [Sun, 14 Apr 2013 22:47:09 +0000 (18:47 -0400)] 
- rework the -r flag on history to make use of existing walk_revisions();
this way we get at relative revisions, error handling, etc.
- don't run environment for history command unless "current" was requested;
running the environment modifies output with logging, might access multiple
dbs, etc., so don't get into it if not needed
- add test suite for commands, start with history output
- document/changelog for history -r feature
- fix sys.stdout writing for py3k
- one more with_statement future not needed

12 years agomerge feature.history
Mike Bayer [Sun, 14 Apr 2013 21:40:11 +0000 (17:40 -0400)] 
merge feature.history

12 years agochange option of history, from after_current to rev_range.
Atsushi Odagiri [Sun, 14 Apr 2013 05:05:57 +0000 (14:05 +0900)] 
change option of history, from after_current to rev_range.

12 years agoadd option, after-current, to history subcommand
Atsushi Odagiri [Sun, 14 Apr 2013 03:24:32 +0000 (12:24 +0900)] 
add option, after-current, to history subcommand

12 years agodocs
Mike Bayer [Sat, 13 Apr 2013 00:13:45 +0000 (20:13 -0400)] 
docs

12 years ago- will call this 0.6
Mike Bayer [Sat, 13 Apr 2013 00:10:56 +0000 (20:10 -0400)] 
- will call this 0.6
- cleanup unused symbols in compat
- move any remaining conditional import switches out to compat
- pretty sure anything we use for a buffer will have flush()
- I can see that using the new io.* stuff means codecs isn't too
smooth here, but removed the double-wrap check in migration.py
which seems to be due to the bytesio setup in the test suite, simplified
this so that an encoding-writing test just writes to BytesIO
- removed all "from __future__ import with_statement"
- i think when we load_source(), that file might not be ascii
so we need to open as bytes
- make encoding an explcit argument in test suite write_script()
- sort the columns in autogenerate so that the autogen tests run
consistently on python3.3, seems to have a very random set ordering,
also loosen up an ordered check in test_op

12 years agobranch merge
Mike Bayer [Fri, 12 Apr 2013 23:09:14 +0000 (19:09 -0400)] 
branch merge

12 years agocallable() revided
Hong Minhee [Fri, 12 Apr 2013 22:21:10 +0000 (07:21 +0900)] 
callable() revided

12 years agoUse collections.Callable ABC instead of callable() predicate
Hong Minhee [Fri, 12 Apr 2013 22:03:25 +0000 (07:03 +0900)] 
Use collections.Callable ABC instead of callable() predicate

12 years agoIntroduce compatibility module
Hong Minhee [Fri, 12 Apr 2013 22:00:41 +0000 (07:00 +0900)] 
Introduce compatibility module

12 years agoRemove 2to3 dependency. Fix #55
Hong Minhee [Fri, 12 Apr 2013 19:41:57 +0000 (04:41 +0900)] 
Remove 2to3 dependency.  Fix #55

12 years agoUse with statement for opening file
Hong Minhee [Fri, 12 Apr 2013 19:41:32 +0000 (04:41 +0900)] 
Use with statement for opening file

12 years agoUse io instead of codecs and StringIO
Hong Minhee [Fri, 12 Apr 2013 19:40:54 +0000 (04:40 +0900)] 
Use io instead of codecs and StringIO

12 years agoim_func -> __func__, func_defaults -> __defaults__
Hong Minhee [Fri, 12 Apr 2013 19:39:55 +0000 (04:39 +0900)] 
im_func -> __func__, func_defaults -> __defaults__

12 years agoMake print statements to look like function calls
Hong Minhee [Fri, 12 Apr 2013 19:34:20 +0000 (04:34 +0900)] 
Make print statements to look like function calls

12 years agoConfigParser renamed to configparser since Python 3
Hong Minhee [Fri, 12 Apr 2013 19:33:15 +0000 (04:33 +0900)] 
ConfigParser renamed to configparser since Python 3

12 years agobasestring and str are gone since Python 3
Hong Minhee [Fri, 12 Apr 2013 19:28:48 +0000 (04:28 +0900)] 
basestring and str are gone since Python 3

12 years agoMake exec to work on both 2 and 3
Hong Minhee [Fri, 12 Apr 2013 19:26:24 +0000 (04:26 +0900)] 
Make exec to work on both 2 and 3

12 years agoMake metaclass compatible for both 2 and 3
Hong Minhee [Fri, 12 Apr 2013 19:20:23 +0000 (04:20 +0900)] 
Make metaclass compatible for both 2 and 3

12 years agoUse `as` keyword instead of comma for exception catches
Hong Minhee [Fri, 12 Apr 2013 19:18:07 +0000 (04:18 +0900)] 
Use `as` keyword instead of comma for exception catches

12 years agoIgnore tox directory, egg packages, and vim swaps
Hong Minhee [Fri, 12 Apr 2013 19:14:35 +0000 (04:14 +0900)] 
Ignore tox directory, egg packages, and vim swaps

12 years agoUse relative imports
Hong Minhee [Wed, 10 Apr 2013 20:34:07 +0000 (05:34 +0900)] 
Use relative imports

This change does not affect to any behaviors of it, but is just stylish
improvements to remove 2to3 dependency.

1. All old-style absolute imports e.g. `from alembic import util` are
   replaced by relative imports e.g. `from . import util`.

2. Use of proxy modules (`alembic.op` and `alembic.context`) are replaced
   by deferred import patterns, but these modules still exist.

3. Imports are grouped by 3 types of their origins (standard libraries,
   third party libraries, and local modules) and blank lines are put between
   each group of imports.  This style is from PEP 8:

   <http://www.python.org/dev/peps/pep-0008/#imports>

For stylish change, I can't do that much, because it was intentionally done
as it was by the author.  If the author will allow me to make it more closer
to PEP 8 style, I will do that as well.

12 years agoIgnore tox.ini
Hong Minhee [Wed, 10 Apr 2013 19:49:56 +0000 (04:49 +0900)] 
Ignore tox.ini

12 years agoFix broken test_include_symbol on PyPy
Hong Minhee [Wed, 10 Apr 2013 19:33:17 +0000 (04:33 +0900)] 
Fix broken test_include_symbol on PyPy

12 years agotry to get this to work on py3k
Mike Bayer [Fri, 5 Apr 2013 00:27:43 +0000 (20:27 -0400)] 
try to get this to work on py3k

12 years agoAdded tag rel_0_5_0 for changeset 879aa4d7c7013a551e516e2a026d41823d368224
Mike Bayer [Thu, 4 Apr 2013 22:41:05 +0000 (18:41 -0400)] 
Added tag rel_0_5_0 for changeset 879aa4d7c7013a551e516e2a026d41823d368224

12 years agomore doc tweaks rel_0_5_0
Mike Bayer [Thu, 4 Apr 2013 22:40:00 +0000 (18:40 -0400)] 
more doc tweaks

12 years agodoc fixes
Mike Bayer [Thu, 4 Apr 2013 22:30:38 +0000 (18:30 -0400)] 
doc fixes

12 years agolatest changelog
Mike Bayer [Thu, 4 Apr 2013 22:23:36 +0000 (18:23 -0400)] 
latest changelog

12 years agoadd gpg key
Mike Bayer [Thu, 4 Apr 2013 22:16:15 +0000 (18:16 -0400)] 
add gpg key

12 years ago- changelog
Mike Bayer [Thu, 4 Apr 2013 20:42:29 +0000 (16:42 -0400)] 
- changelog
- test for #76
- don't need output_encoding explicit here

12 years agoMerged in cblume/alembic (pull request #24)
Mike Bayer [Thu, 4 Apr 2013 20:34:58 +0000 (16:34 -0400)] 
Merged in cblume/alembic (pull request #24)

Changes in MigrationContext and ScriptDirectory

12 years agoFixed format of RENAME for table that includes
Mike Bayer [Thu, 4 Apr 2013 20:33:12 +0000 (16:33 -0400)] 
Fixed format of RENAME for table that includes
schema with Postgresql; the schema name shouldn't
be in the "TO" field.
#32

12 years agoAdded ``output_encoding`` option to
Mike Bayer [Thu, 4 Apr 2013 20:23:24 +0000 (16:23 -0400)] 
Added ``output_encoding`` option to
:meth:`.EnvironmentContext.configure`,
used with ``--sql`` mode to apply an encoding
to the output stream.
#90

12 years agoAdded :func:`.operations.create_primary_key`
Mike Bayer [Thu, 4 Apr 2013 19:56:04 +0000 (15:56 -0400)] 
Added :func:`.operations.create_primary_key`
operation, will genenerate an ADD CONSTRAINT
for a primary key.
#93

12 years agoFixed bug whereby double quoting would be applied
Mike Bayer [Thu, 4 Apr 2013 19:43:33 +0000 (15:43 -0400)] 
Fixed bug whereby double quoting would be applied
to target column name during an ``sp_rename``
operation.
#109

12 years agotransactional_ddl flag for SQLite, MySQL dialects
Mike Bayer [Thu, 4 Apr 2013 19:39:34 +0000 (15:39 -0400)] 
transactional_ddl flag for SQLite, MySQL dialects
set to False.  MySQL doesn't support it,
SQLite does but current pysqlite driver does not.
#112

12 years agochangelog
Mike Bayer [Thu, 4 Apr 2013 19:32:31 +0000 (15:32 -0400)] 
changelog

12 years agofix head only when there's no rev...
Mike Bayer [Thu, 4 Apr 2013 19:30:42 +0000 (15:30 -0400)] 
fix head only when there's no rev...

12 years agomerge default
Mike Bayer [Thu, 4 Apr 2013 19:27:13 +0000 (15:27 -0400)] 
merge default