]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/log
thirdparty/sqlalchemy/alembic.git
13 years agochangelog
Mike Bayer [Wed, 8 Feb 2012 17:26:54 +0000 (12:26 -0500)] 
changelog

13 years agoAdded optional onupdate and ondelete params to Operations.create_check_constraint
Giacomo Bagnoli [Wed, 8 Feb 2012 16:58:46 +0000 (17:58 +0100)] 
Added optional onupdate and ondelete params to Operations.create_check_constraint

13 years ago- [feature] script_location can be interpreted
Mike Bayer [Wed, 8 Feb 2012 05:30:14 +0000 (00:30 -0500)] 
- [feature] script_location can be interpreted
  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]

13 years ago- update version + CHANGES for rff49b7fe01b4
Mike Bayer [Fri, 3 Feb 2012 14:51:53 +0000 (09:51 -0500)] 
- update version + CHANGES for rff49b7fe01b4

13 years agoMerged in aodag/alembic/fix.argparse (pull request #4)
Mike Bayer [Fri, 3 Feb 2012 14:50:31 +0000 (09:50 -0500)] 
Merged in aodag/alembic/fix.argparse (pull request #4)

13 years agofix for unneccesary require to argparse
aodag [Fri, 3 Feb 2012 14:25:27 +0000 (23:25 +0900)] 
fix for unneccesary require to argparse

13 years agobranch for argparse
aodag [Fri, 3 Feb 2012 13:40:16 +0000 (22:40 +0900)] 
branch for argparse

13 years agoAdded tag rel_0_2_1 for changeset 87ab39a74dcf49dd7cabe55b89d37758a2104001
Mike Bayer [Tue, 31 Jan 2012 15:11:35 +0000 (10:11 -0500)] 
Added tag rel_0_2_1 for changeset 87ab39a74dcf49dd7cabe55b89d37758a2104001

13 years ago- forgot to push the tag rel_0_2_1
Mike Bayer [Tue, 31 Jan 2012 15:10:37 +0000 (10:10 -0500)] 
- forgot to push the tag

13 years ago- [bug] Fixed the generation of CHECK constraint,
Mike Bayer [Tue, 31 Jan 2012 15:08:12 +0000 (10:08 -0500)] 
- [bug] Fixed the generation of CHECK constraint,
  regression from 0.2.0 [#26]

13 years agoAdded tag rel_0_2_0 for changeset 0bf3fe8f6f089f6023f3917ce8faa050ad0b79b0
Mike Bayer [Mon, 30 Jan 2012 19:36:55 +0000 (14:36 -0500)] 
Added tag rel_0_2_0 for changeset 0bf3fe8f6f089f6023f3917ce8faa050ad0b79b0

13 years agofix docstring references rel_0_2_0
Mike Bayer [Mon, 30 Jan 2012 19:34:37 +0000 (14:34 -0500)] 
fix docstring references

13 years agofix long lines
Mike Bayer [Mon, 30 Jan 2012 19:22:32 +0000 (14:22 -0500)] 
fix long lines

13 years agomerge this together
Mike Bayer [Mon, 30 Jan 2012 18:57:04 +0000 (13:57 -0500)] 
merge this together

13 years agocut off the slug length at 20 chars
Mike Bayer [Mon, 30 Jan 2012 18:03:43 +0000 (13:03 -0500)] 
cut off the slug length at 20 chars

13 years agolets put a doc note here for now since everyone is going to get this issue
Mike Bayer [Mon, 30 Jan 2012 17:54:16 +0000 (12:54 -0500)] 
lets put a doc note here for now since everyone is going to get this issue

13 years agoadd docs for the standalone ops use case
Mike Bayer [Mon, 30 Jan 2012 17:36:10 +0000 (12:36 -0500)] 
add docs for the standalone ops use case

13 years ago- add test coverage for standalone MigrationContext / Operations
Mike Bayer [Mon, 30 Jan 2012 17:31:08 +0000 (12:31 -0500)] 
- add test coverage for standalone MigrationContext / Operations
- ensure MigrationContext.configure can be used with a single connection
argument

13 years agoturn alembic.op and alembic.context into real proxy modules,
Mike Bayer [Thu, 26 Jan 2012 20:43:57 +0000 (15:43 -0500)] 
turn alembic.op and alembic.context into real proxy modules,
with an accurate system of reflecting the Operations and
EnvironmentContext methods into them.

13 years ago- [bug] env.py templates call
Mike Bayer [Thu, 26 Jan 2012 15:21:25 +0000 (10:21 -0500)] 
- [bug] env.py templates call
  connection.close() to better support
  programmatic usage of commands; use
  NullPool in conjunction with create_engine()
  as well so that no connection resources
  remain afterwards.  [#25]

13 years agomerge whatever
Mike Bayer [Tue, 24 Jan 2012 23:43:52 +0000 (18:43 -0500)] 
merge whatever

13 years agouse newer url
Mike Bayer [Tue, 24 Jan 2012 23:42:55 +0000 (18:42 -0500)] 
use newer url

13 years agomore fixes for rev ids
Mike Bayer [Tue, 24 Jan 2012 23:37:19 +0000 (18:37 -0500)] 
more fixes for rev ids

13 years agoremove erroneous pdb
Mike Bayer [Tue, 24 Jan 2012 23:30:07 +0000 (18:30 -0500)] 
remove erroneous pdb

13 years ago- tried it out in my work project, and realized the "op" and "context" namespaces
Mike Bayer [Tue, 24 Jan 2012 23:10:34 +0000 (18:10 -0500)] 
- tried it out in my work project, and realized the "op" and "context" 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

13 years agodocumentation including an API diagram
Mike Bayer [Tue, 24 Jan 2012 22:20:28 +0000 (17:20 -0500)] 
documentation including an API diagram

13 years agodocumentation updates for 0.2
Mike Bayer [Tue, 24 Jan 2012 21:33:34 +0000 (16:33 -0500)] 
documentation updates for 0.2

13 years ago- [feature] The naming of revision files can
Mike Bayer [Tue, 24 Jan 2012 20:25:28 +0000 (15:25 -0500)] 
- [feature] The naming of revision files can
  now be customized to be some combination
  of "rev id" and "slug", the latter of which
  is based on the revision message.
  By default, the pattern "<rev>_<slug>"
  is used for new files.   New script files
  should include the "revision" variable
  for this to work, which is part of
  the newer script.py.mako scripts.
  [#24]

13 years agothis is all tests passing with the refactor, which IMHO is
Mike Bayer [Tue, 24 Jan 2012 18:42:43 +0000 (13:42 -0500)] 
this is all tests passing with the refactor, which IMHO is
miraculous

13 years ago- rearrange the internals such that we no longer use global
Mike Bayer [Tue, 24 Jan 2012 17:20:33 +0000 (12:20 -0500)] 
- rearrange the internals such that we no longer use global
variables to get to things.   The new structure is:

EnvironmentContext -> MigrationContext -> Operation

EnvironmentContext sets up the variables "alembic.context"
and "alembic.op" to act like the modules they used to.
MigrationContext can also exist independently of EnvironmentContext.

Refactoring is still underway here.

13 years agothe "stamp" command by itself does not set up "starting_rev"
Mike Bayer [Tue, 24 Jan 2012 17:03:41 +0000 (12:03 -0500)] 
the "stamp" command by itself does not set up "starting_rev"

13 years ago- [feature] Can create alembic.config.Config
Mike Bayer [Fri, 20 Jan 2012 21:23:20 +0000 (16:23 -0500)] 
- [feature] Can create alembic.config.Config
  with no filename, use set_main_option()
  to add values.  Also added set_section_option()
  which will add sections.  [#23]

13 years ago- [bug] Fixed alteration of column type on
Mike Bayer [Fri, 20 Jan 2012 20:25:30 +0000 (15:25 -0500)] 
- [bug] Fixed alteration of column type on
  MSSQL to not include the keyword "TYPE".

13 years ago- [bug] fix the config.main() function to honor
Mike Bayer [Fri, 20 Jan 2012 18:42:13 +0000 (13:42 -0500)] 
- [bug] fix the config.main() function to honor
  the arguments passed, remove no longer used
  "scripts/alembic" as setuptools creates this
  for us.  [#22]

13 years agomore manifest
Mike Bayer [Sun, 8 Jan 2012 18:43:38 +0000 (13:43 -0500)] 
more manifest

13 years agoneed to include the .rst files in the manifest
Mike Bayer [Sun, 8 Jan 2012 18:38:36 +0000 (13:38 -0500)] 
need to include the .rst files in the manifest

13 years agonew year
Mike Bayer [Thu, 5 Jan 2012 01:17:24 +0000 (20:17 -0500)] 
new year

13 years agoAdded tag rel_0_1_1 for changeset d76a1bea49a29822000254ec26926de1187c1d1d
Mike Bayer [Thu, 5 Jan 2012 01:12:32 +0000 (20:12 -0500)] 
Added tag rel_0_1_1 for changeset d76a1bea49a29822000254ec26926de1187c1d1d

13 years agochangelog rel_0_1_1
Mike Bayer [Thu, 5 Jan 2012 01:07:44 +0000 (20:07 -0500)] 
changelog

13 years agoColumn names were not wrapped in quotes when autogenerating a ForeignKeyConstraint.
Samuel Rayment [Wed, 4 Jan 2012 23:15:31 +0000 (23:15 +0000)] 
Column names were not wrapped in quotes when autogenerating a ForeignKeyConstraint.

13 years agofix #20
Mike Bayer [Tue, 3 Jan 2012 16:54:54 +0000 (11:54 -0500)] 
fix #20

13 years agofix docstring
Mike Bayer [Mon, 2 Jan 2012 22:26:00 +0000 (17:26 -0500)] 
fix docstring

13 years ago- [bug] Default prefix for autogenerate
Mike Bayer [Mon, 2 Jan 2012 22:22:33 +0000 (17:22 -0500)] 
- [bug] Default prefix for autogenerate
  directives is "op.", matching the
  mako templates. [#18]

- [feature] Add alembic_module_prefix argument
  to configure() to complement
  sqlalchemy_module_prefix. [#18]

13 years ago- [bug] Fix bug where create_table() didn't
Mike Bayer [Sun, 1 Jan 2012 16:21:29 +0000 (11:21 -0500)] 
- [bug] Fix bug where create_table() didn't
  handle self-referential foreign key
  correctly [#17]

13 years ago- [bug] Fix autogenerate bug that prevented
Mike Bayer [Wed, 28 Dec 2011 15:36:07 +0000 (10:36 -0500)] 
- [bug] Fix autogenerate bug that prevented
  correct reflection of a foreign-key
  referenced table in the list of "to remove".
  [#16]

13 years agogo back to readthedocs
Mike Bayer [Fri, 23 Dec 2011 16:41:47 +0000 (11:41 -0500)] 
go back to readthedocs

13 years ago- [bug] Fix autogenerate so that "pass" is
Mike Bayer [Tue, 20 Dec 2011 21:10:01 +0000 (16:10 -0500)] 
- [bug] Fix autogenerate so that "pass" is
  generated between the two comments
  if no net migrations were present.

13 years ago- Python 2.5 is supported, needs
Mike Bayer [Sat, 3 Dec 2011 18:36:59 +0000 (13:36 -0500)] 
- Python 2.5 is supported, needs
  __future__.with_statement

13 years agomerge tag
Mike Bayer [Sat, 3 Dec 2011 18:29:45 +0000 (13:29 -0500)] 
merge tag

13 years ago- Clean up file write operations so that
Mike Bayer [Sat, 3 Dec 2011 18:29:05 +0000 (13:29 -0500)] 
- Clean up file write operations so that
  file handles are closed.

- PyPy is supported.

13 years agoAdded tag rel_0_1_0 for changeset 3bf28d1fc3e665ae81baa5e47609840ea6f42142
Mike Bayer [Wed, 30 Nov 2011 20:09:44 +0000 (15:09 -0500)] 
Added tag rel_0_1_0 for changeset 3bf28d1fc3e665ae81baa5e47609840ea6f42142

13 years agomore manifest fix rel_0_1_0
Mike Bayer [Wed, 30 Nov 2011 20:08:49 +0000 (15:08 -0500)] 
more manifest fix

13 years agoadd test.cfg
Mike Bayer [Wed, 30 Nov 2011 20:06:24 +0000 (15:06 -0500)] 
add test.cfg

13 years agoanother detail re: sql server here
Mike Bayer [Wed, 30 Nov 2011 20:04:33 +0000 (15:04 -0500)] 
another detail re: sql server here

13 years agoanother doc bug
Mike Bayer [Wed, 30 Nov 2011 20:01:46 +0000 (15:01 -0500)] 
another doc bug

13 years agofixups
Mike Bayer [Wed, 30 Nov 2011 19:57:31 +0000 (14:57 -0500)] 
fixups

13 years agoswitch to "from alembic import op" as its not
Mike Bayer [Wed, 30 Nov 2011 19:23:03 +0000 (14:23 -0500)] 
switch to "from alembic import op" as its not
a debate worth having...probably clearer too

13 years agodont need the const thing now that the batch separator is in use
Mike Bayer [Wed, 30 Nov 2011 00:37:45 +0000 (19:37 -0500)] 
dont need the const thing now that the batch separator is in use

13 years ago- add alter col default for PG/base
Mike Bayer [Wed, 30 Nov 2011 00:21:58 +0000 (19:21 -0500)] 
- add alter col default for PG/base
- i want the ; after BEGIN/COMMIT for static generation, makes it easier to parse

13 years agoimplement server default, nullability for SQL server
Mike Bayer [Wed, 30 Nov 2011 00:01:31 +0000 (19:01 -0500)] 
implement server default, nullability for SQL server

13 years ago- add mssql_batch_separator for offline mode
Mike Bayer [Tue, 29 Nov 2011 23:24:20 +0000 (18:24 -0500)] 
- add mssql_batch_separator for offline mode
- implement SQL server alter column rules regarding NULL/NOT NULL

13 years ago- implement "start migrations" event for impls
Mike Bayer [Tue, 29 Nov 2011 21:09:13 +0000 (16:09 -0500)] 
- implement "start migrations" event for impls
- implement counter logic for SQL server constraint/default
drop so that variables are declared uniquely within
a full migration run, #12

13 years ago- add begin_transaction() env.py helper. Emits the appropriate
Mike Bayer [Tue, 29 Nov 2011 20:50:35 +0000 (15:50 -0500)] 
- add begin_transaction() env.py helper.  Emits the appropriate
begin/commit pair regardless of context.
- add dialect support for BEGIN/COMMIT working corresponding
to backend.  Add implementation for SQL server.
- add tests for BEGIN/COMMIT , #11
- rework SQL server test suite for more classes of test
- fix test suite to clean up after a prior failed suite

13 years ago- fix some more file()->open() in docs
Mike Bayer [Tue, 29 Nov 2011 19:15:53 +0000 (14:15 -0500)] 
- fix some more file()->open() in docs
- doc updates, corrections
- script uses CommandError consistently

13 years agolink ourselves to the sqla project.
Mike Bayer [Tue, 29 Nov 2011 18:43:55 +0000 (13:43 -0500)] 
link ourselves to the sqla project.

13 years agoreadme updates
Mike Bayer [Tue, 29 Nov 2011 18:42:09 +0000 (13:42 -0500)] 
readme updates

13 years agopython 3 works ! near zero changes needed
Mike Bayer [Tue, 29 Nov 2011 18:10:25 +0000 (13:10 -0500)] 
python 3 works !   near zero changes needed

13 years ago- add test for dialect/impl-specific affinity comparison, #5
Mike Bayer [Tue, 29 Nov 2011 17:43:20 +0000 (12:43 -0500)] 
- add test for dialect/impl-specific affinity comparison, #5

13 years agoreport full path for env.py
Mike Bayer [Tue, 29 Nov 2011 17:35:01 +0000 (12:35 -0500)] 
report full path for env.py

13 years agoenabled automatic script creation (for windows)
melnychuk [Tue, 29 Nov 2011 10:45:37 +0000 (11:45 +0100)] 
enabled automatic script creation (for windows)

13 years agodependencies
Mike Bayer [Tue, 29 Nov 2011 03:48:46 +0000 (22:48 -0500)] 
dependencies

13 years agotypo
Mike Bayer [Tue, 29 Nov 2011 03:38:19 +0000 (22:38 -0500)] 
typo

13 years ago- add version check for at least 06, tests for 07 in selected
Mike Bayer [Tue, 29 Nov 2011 03:29:43 +0000 (22:29 -0500)] 
- add version check for at least 06, tests for 07 in selected
areas
- add "requires 07" decorators to test suite
- add tests for PG ENUM in offline mode.  works in conjunction
with the latest 0.7.4 tip of SQLAlchemy, fixes #9.  Docs will
be needed to illustrate how ENUM should be used.
- add support for table before_create and after_create events
within op.create_table().   Currently this will do the ENUM
thing for PG but will also invoke any other kinds of events
that might get configured on the table.

13 years ago- some test cleanup
Mike Bayer [Mon, 28 Nov 2011 22:11:14 +0000 (17:11 -0500)] 
- some test cleanup
- add support for actual DB connections, test.cfg, etc.
- add PG server default comparison tests, #6

13 years agoadd tests for #7
Mike Bayer [Mon, 28 Nov 2011 21:24:42 +0000 (16:24 -0500)] 
add tests for #7

13 years ago- rename autogenerate_metadata to target_metadata, autogenerate_sqlalchemy_prefix
Mike Bayer [Mon, 28 Nov 2011 20:50:14 +0000 (15:50 -0500)] 
- rename autogenerate_metadata to target_metadata, autogenerate_sqlalchemy_prefix
to sqlalchemy_module_prefix
- add create_check_constraint() directive

13 years agoupdates
Mike Bayer [Mon, 28 Nov 2011 18:58:57 +0000 (13:58 -0500)] 
updates

13 years ago- move comparison of types, server default to the context.
Mike Bayer [Mon, 28 Nov 2011 18:49:58 +0000 (13:49 -0500)] 
- move comparison of types, server default to the context.
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

13 years agoshare imports among multi runs in one set
Mike Bayer [Mon, 28 Nov 2011 15:15:26 +0000 (10:15 -0500)] 
share imports among multi runs in one set

13 years agosome docs
Mike Bayer [Mon, 28 Nov 2011 07:37:53 +0000 (02:37 -0500)] 
some docs

13 years ago- rework MySQL + autogenerate so that
Mike Bayer [Mon, 28 Nov 2011 07:24:18 +0000 (02:24 -0500)] 
- rework MySQL + autogenerate so that
multiple changes to a single col are collapsed
into one step, will work for other dialects
which may support this too
- add support for "imports" in scripts so
that dialect-specific types can be rendered straight in
from their parent module and work immediately
- rework the internals of autogenerate to be more
succinct, though there's a lot more that could
happen here to make this easier

13 years agoinitial MySQL support, good thing we tried
Mike Bayer [Mon, 28 Nov 2011 05:58:00 +0000 (00:58 -0500)] 
initial MySQL support, good thing we tried
this before releasing

13 years ago- add more caveats to autogen docs
Mike Bayer [Mon, 28 Nov 2011 01:48:30 +0000 (20:48 -0500)] 
- add more caveats to autogen docs
- fix --sql examples to use is_offline_mode(), new env.py
format

13 years ago- use new sa. import in tutorial examples
Mike Bayer [Mon, 28 Nov 2011 01:29:40 +0000 (20:29 -0500)] 
- use new sa. import in tutorial examples
- add an alter column autogen test with an FK constraint

13 years agomore changelog
Mike Bayer [Mon, 28 Nov 2011 01:16:01 +0000 (20:16 -0500)] 
more changelog

13 years agonote about py3k
Mike Bayer [Mon, 28 Nov 2011 01:00:46 +0000 (20:00 -0500)] 
note about py3k

13 years agopg uses DROP NOT NULL, keep this as the default and move
Mike Bayer [Mon, 28 Nov 2011 00:52:24 +0000 (19:52 -0500)] 
pg uses DROP NOT NULL, keep this as the default and move
NULL to SQL Server, until we get more data on other DBs

13 years ago- docs
Mike Bayer [Mon, 28 Nov 2011 00:44:59 +0000 (19:44 -0500)] 
- docs
- note about unicode
- dont need importlater
- use correct type_ kw arg
- log cols/tables/etc as we autogenerate

13 years ago- support for schema types in modify type
Mike Bayer [Mon, 28 Nov 2011 00:05:39 +0000 (19:05 -0500)] 
- support for schema types in modify type
- add known status to CHANGES
- google group
- sa. prefix on modify type in autogenerate
- rename_table

13 years agomake sure type gets the prefix in modify type
Mike Bayer [Sun, 27 Nov 2011 22:48:33 +0000 (17:48 -0500)] 
make sure type gets the prefix in modify type

13 years agomore tests and now its sort of working
Mike Bayer [Sun, 27 Nov 2011 22:43:31 +0000 (17:43 -0500)] 
more tests and now its sort of working

13 years agoOK I did that wrong, not working yet but it will be more like this
Mike Bayer [Sun, 27 Nov 2011 20:23:30 +0000 (15:23 -0500)] 
OK I did that wrong, not working yet but it will be more like this

13 years agoimplement autogenerate feature
Mike Bayer [Sun, 27 Nov 2011 19:56:01 +0000 (14:56 -0500)] 
implement autogenerate feature

13 years ago- support the constraints generated from SchemaType, honoring conditional
Mike Bayer [Thu, 24 Nov 2011 00:27:58 +0000 (19:27 -0500)] 
- support the constraints generated from SchemaType, honoring conditional
rule
- add mssql_drop_default, mssql_drop_check flags to drop_column(),
will emit special MSSQL crap to drop DEFAULT and CHECK constraints based
on inline system table lookup

13 years ago- drop constraint
Mike Bayer [Wed, 23 Nov 2011 22:17:31 +0000 (17:17 -0500)] 
- drop constraint
- ensure table attachment event occurs for unique constraint

13 years agofix
Mike Bayer [Wed, 23 Nov 2011 17:36:34 +0000 (12:36 -0500)] 
fix

13 years agoadd rename column support
Mike Bayer [Wed, 23 Nov 2011 17:10:21 +0000 (12:10 -0500)] 
add rename column support

13 years agoadd front matter
Mike Bayer [Mon, 21 Nov 2011 03:03:09 +0000 (22:03 -0500)] 
add front matter

13 years agogo along with sphinx and put the init params in the class docs
Mike Bayer [Thu, 17 Nov 2011 19:21:27 +0000 (14:21 -0500)] 
go along with sphinx and put the init params in the class docs

13 years ago- new doc theme
Mike Bayer [Thu, 17 Nov 2011 16:48:39 +0000 (11:48 -0500)] 
- new doc theme
- host on packages.python.org