]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/log
thirdparty/sqlalchemy/alembic.git
13 years agoAutogenerate now orders tables correctly. Dependency tables now appear before their...
jayd3e [Tue, 13 Mar 2012 01:24:11 +0000 (18:24 -0700)] 
Autogenerate now orders tables correctly.  Dependency tables now appear before their dependant tables.  Also added the respective tests.

13 years ago- [bug] Fixed inappropriate direct call to
Mike Bayer [Tue, 28 Feb 2012 16:27:04 +0000 (11:27 -0500)] 
- [bug] Fixed inappropriate direct call to
  util.err() and therefore sys.exit()
  when Config failed to locate the
  config file within library usage.
  [#35]

13 years ago- [bug] implement 'tablename' parameter on
Mike Bayer [Tue, 28 Feb 2012 16:21:07 +0000 (11:21 -0500)] 
- [bug] implement 'tablename' parameter on
  drop_index() as this is needed by some
  backends.

- [feature] Added execution_options parameter
  to op.execute(), will call execution_options()
  on the Connection before executing.

  The immediate use case here is to allow
  access to the new no_parameters option
  in SQLAlchemy 0.7.6, which allows
  some DBAPIs (psycopg2, MySQLdb) to allow
  percent signs straight through without
  escaping, thus providing cross-compatible
  operation with DBAPI execution and
  static script generation.

13 years agofix spelling
Felix Schwarz [Wed, 22 Feb 2012 22:53:10 +0000 (23:53 +0100)] 
fix spelling

13 years ago- [feature] Informative error message when op.XYZ
Mike Bayer [Mon, 13 Feb 2012 22:14:03 +0000 (17:14 -0500)] 
- [feature] Informative error message when op.XYZ
  directives are invoked at module import time.

13 years agomerge
Mike Bayer [Sun, 12 Feb 2012 23:10:18 +0000 (18:10 -0500)] 
merge

13 years ago- [bug] drop_index() ensures a dummy column
Mike Bayer [Sun, 12 Feb 2012 22:41:27 +0000 (17:41 -0500)] 
- [bug] drop_index() ensures a dummy column
  is added when it calls "Index", as SQLAlchemy
  0.7.6 will warn on index with no column names.

13 years agoMerged in marcinkuzminski/alembic (pull request #7)
Mike Bayer [Thu, 9 Feb 2012 17:51:58 +0000 (12:51 -0500)] 
Merged in marcinkuzminski/alembic (pull request #7)

13 years agofixed typo
Marcin Kuzminski [Wed, 8 Feb 2012 23:02:16 +0000 (01:02 +0200)] 
fixed typo

13 years agochangelog
Mike Bayer [Wed, 8 Feb 2012 17:51:27 +0000 (12:51 -0500)] 
changelog

13 years agoMerged in marcinkuzminski/alembic (pull request #5)
Mike Bayer [Wed, 8 Feb 2012 17:48:46 +0000 (12:48 -0500)] 
Merged in marcinkuzminski/alembic (pull request #5)

13 years agotemplates pep8 E302 2 blank lines between functions
Marcin Kuzminski [Wed, 8 Feb 2012 17:43:48 +0000 (19:43 +0200)] 
templates pep8 E302 2 blank lines between functions

13 years agoshow message for pylons template where to explicitly define engine for usage in migra...
Marcin Kuzminski [Wed, 8 Feb 2012 17:42:38 +0000 (19:42 +0200)] 
show message for pylons template where to explicitly define engine for usage in migrations

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 agofixed error message on empty target_metadata _script undefined
Marcin Kuzminski [Wed, 8 Feb 2012 03:48:31 +0000 (05:48 +0200)] 
fixed error message on empty target_metadata _script undefined

13 years agotry to get engine from Base if it's defined
Marcin Kuzminski [Wed, 8 Feb 2012 03:40:51 +0000 (05:40 +0200)] 
try to get engine from Base if it's defined

13 years agofixed #30 and some other issues with pylons template
Marcin Kuzminski [Wed, 8 Feb 2012 03:34:21 +0000 (05:34 +0200)] 
fixed #30 and some other issues with pylons template

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