]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/log
thirdparty/sqlalchemy/alembic.git
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

12 years agoMerged in dahlia/alembic/upgrade-message (pull request #30)
Mike Bayer [Thu, 4 Apr 2013 19:26:48 +0000 (15:26 -0400)] 
Merged in dahlia/alembic/upgrade-message (pull request #30)

Print message to each upgrade/downgrade step

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

12 years agoMerged in dahlia/alembic/remove-unused-imports (pull request #29)
Mike Bayer [Thu, 4 Apr 2013 19:20:40 +0000 (15:20 -0400)] 
Merged in dahlia/alembic/remove-unused-imports (pull request #29)

Remove unused imports

12 years ago- typo
Mike Bayer [Thu, 4 Apr 2013 19:19:36 +0000 (15:19 -0400)] 
- typo
- changelog:       Added --head-only option to "alembic current",
      will print current version plus the symbol
      "(head)" if this version is the head or not.
      Courtesy Charles-Axel Dein.

12 years agoMerged in charlax/alembic/format_current (pull request #28)
Mike Bayer [Thu, 4 Apr 2013 19:17:00 +0000 (15:17 -0400)] 
Merged in charlax/alembic/format_current (pull request #28)

Add --head-only option to current command

12 years agoPrint message to each upgrade/downgrade step
Hong Minhee [Sat, 30 Mar 2013 20:49:55 +0000 (05:49 +0900)] 
Print message to each upgrade/downgrade step

12 years agoRemoved unused imports from alembic/ directory
Hong Minhee [Sat, 30 Mar 2013 20:01:43 +0000 (05:01 +0900)] 
Removed unused imports from alembic/ directory

12 years agoRemove unused imports
Hong Minhee [Sat, 30 Mar 2013 19:49:50 +0000 (04:49 +0900)] 
Remove unused imports

12 years agolatin1, utf8, fix it
Mike Bayer [Mon, 18 Mar 2013 00:16:19 +0000 (17:16 -0700)] 
latin1, utf8, fix it

12 years agoforce this to innodb to support mysqls with different
Mike Bayer [Tue, 12 Mar 2013 19:43:20 +0000 (15:43 -0400)] 
force this to innodb to support mysqls with different
defaults here

12 years agoAutogenerate will render additional table keyword
Mike Bayer [Tue, 12 Mar 2013 19:34:09 +0000 (15:34 -0400)] 
Autogenerate will render additional table keyword
arguments like "mysql_engine" and others within
op.create_table().
#110

12 years agoFix typo
Charles-Axel Dein [Mon, 11 Mar 2013 01:57:12 +0000 (18:57 -0700)] 
Fix typo

12 years agoAdd head identifier to --head-only option output
Charles-Axel Dein [Mon, 11 Mar 2013 01:54:29 +0000 (18:54 -0700)] 
Add head identifier to --head-only option output

12 years agoAdd --head-only option to current command
Charles-Axel Dein [Wed, 6 Mar 2013 18:31:09 +0000 (10:31 -0800)] 
Add --head-only option to current command

12 years ago- The rendering of any construct during autogenerate
Mike Bayer [Mon, 4 Mar 2013 23:56:50 +0000 (18:56 -0500)] 
- The rendering of any construct during autogenerate
can be customized, in particular to allow special rendering
for user-defined column, constraint subclasses, using new
``render_item`` argument to
:meth:`.EnvironmentContext.configure`.
#108

12 years agoFixed bug whereby create_index()
Mike Bayer [Sat, 16 Feb 2013 01:20:50 +0000 (20:20 -0500)] 
Fixed bug whereby create_index()
would include in the constraint columns that
are added to all Table objects using events,
externally to the generation of the constraint.
This is the same issue that was fixed for unique
constraints in version 0.3.2.

12 years ago- return the same error message as when running on all other pythons
Mike Bayer [Mon, 11 Feb 2013 22:58:06 +0000 (17:58 -0500)] 
- return the same error message as when running on all other pythons
- changelog

12 years agoMerged in niwi/alembic (pull request #27)
Mike Bayer [Mon, 11 Feb 2013 22:33:49 +0000 (17:33 -0500)] 
Merged in niwi/alembic (pull request #27)

Fix unexpected output on exec alembic command without a subcommand.

12 years ago- repair argspec to work with py3k also
Mike Bayer [Mon, 11 Feb 2013 22:19:42 +0000 (17:19 -0500)] 
- repair argspec to work with py3k also
- relying upon SQLA argspec compat here, so let's also bump compatibility
to 0.7.3, as 0.6 is working poorly in any case

12 years ago- move to 0.5.0 as we are making some slight naming changes
Mike Bayer [Mon, 11 Feb 2013 19:37:59 +0000 (14:37 -0500)] 
- move to 0.5.0 as we are making some slight naming changes
- add a generalized approach for renamed kw args, accepting the old
ones using a specialized decorator
- change "tablename" to "table_name" for create_index, drop_index,
drop_constraint
- change "name" to "new_column_name" for alter_column
#104

12 years agoFix unexpected output on exec alembic command without a subcommand.
Andrei Antoukh [Sun, 10 Feb 2013 11:55:23 +0000 (12:55 +0100)] 
Fix unexpected output on exec alembic command without a subcommand.

12 years agook seems we're up to 0.4.3...
Mike Bayer [Mon, 4 Feb 2013 18:44:48 +0000 (13:44 -0500)] 
ok seems we're up to 0.4.3...

12 years ago- get sphinx to render "type_" with the underscore
Mike Bayer [Mon, 4 Feb 2013 18:42:34 +0000 (13:42 -0500)] 
- get sphinx to render "type_" with the underscore
- rename "type" to "type_" in drop_constraint for consistency, leave old name for compat

12 years agoAdded tag rel_0_4_2 for changeset 979a32f8e92c56fd5a0b9ca3e9cb1842290fd84d
Mike Bayer [Fri, 11 Jan 2013 16:17:17 +0000 (11:17 -0500)] 
Added tag rel_0_4_2 for changeset 979a32f8e92c56fd5a0b9ca3e9cb1842290fd84d

12 years ago0.4.2 rel_0_4_2
Mike Bayer [Fri, 11 Jan 2013 16:17:13 +0000 (11:17 -0500)] 
0.4.2

12 years ago2013
Mike Bayer [Fri, 11 Jan 2013 16:12:44 +0000 (11:12 -0500)] 
2013

12 years agoFixed bug where autogenerate would fail if a Column
Mike Bayer [Fri, 11 Jan 2013 05:52:18 +0000 (00:52 -0500)] 
Fixed bug where autogenerate would fail if a Column
to be added to a table made use of the ".key" paramter.
#99

12 years agoThe "implicit" constraint generated by a
Mike Bayer [Thu, 10 Jan 2013 21:20:57 +0000 (16:20 -0500)] 
The "implicit" constraint generated by a
type such as Boolean or Enum will not generate an
ALTER statement when run on SQlite, which does not
support ALTER for the purpose of adding/removing
constraints separate from the column def itself.
While SQLite supports adding a CHECK constraint
at the column level, SQLAlchemy would need modification
to support this.
A warning is emitted indicating this
constraint cannot be added in this scenario.
#98

12 years agofix changelog formatting
Mike Bayer [Sat, 5 Jan 2013 18:27:29 +0000 (13:27 -0500)] 
fix changelog formatting

12 years agoremove this echo
Mike Bayer [Sat, 5 Jan 2013 17:15:07 +0000 (12:15 -0500)] 
remove this echo

12 years ago- add workaround to setup.py to avoid setuptools issue regarding multiprocessing
Mike Bayer [Sat, 5 Jan 2013 17:13:28 +0000 (12:13 -0500)] 
- add workaround to setup.py to avoid setuptools issue regarding multiprocessing
when "setup.py test" is run, #96
- add version detection for 0.8, apply this version detection to
test_autogenerate:AutogenRenderTest.test_render_fk_constraint_kwarg
and emit explicit append_constraint() for each FK if not on 0.8 as FKs
do not auto-attach in 0.7, #96
- add a README containing instructions for running tests and setting up
optional database backens, #96

12 years agoAdded tag rel_0_4_1 for changeset a52b54b339b971b1376a55176c9c58a985b21739
Mike Bayer [Sun, 9 Dec 2012 22:11:58 +0000 (17:11 -0500)] 
Added tag rel_0_4_1 for changeset a52b54b339b971b1376a55176c9c58a985b21739

12 years ago0.4.1 release date rel_0_4_1
Mike Bayer [Sun, 9 Dec 2012 22:10:34 +0000 (17:10 -0500)] 
0.4.1 release date

12 years agoupdate sqla links for 0.8 docs
Mike Bayer [Sun, 9 Dec 2012 22:08:16 +0000 (17:08 -0500)] 
update sqla links for 0.8 docs

12 years agoAdded support for autogenerate render of
Mike Bayer [Wed, 5 Dec 2012 20:36:45 +0000 (15:36 -0500)] 
Added support for autogenerate render of
ForeignKeyConstraint options onupdate,
ondelete, initially, and deferred.
#92

12 years agoAutogenerate will include "autoincrement=False"
Mike Bayer [Wed, 5 Dec 2012 18:54:25 +0000 (13:54 -0500)] 
Autogenerate will include "autoincrement=False"
in the rendered table metadata
if this flag was set to false on the source
:class:`.Column` object.
#94

12 years agoadda test for create table w no pk
Mike Bayer [Fri, 30 Nov 2012 23:44:42 +0000 (18:44 -0500)] 
adda test for create table w no pk

12 years agoFix a typo in the README.
David Ripton [Mon, 29 Oct 2012 16:32:37 +0000 (12:32 -0400)] 
Fix a typo in the README.