summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwyuenho@gmail.com <unknown>2011-10-02 20:13:10 +0800
committerwyuenho@gmail.com <unknown>2011-10-02 20:13:10 +0800
commit7ce76aaab64ce11426a03a908ec15315a925bd74 (patch)
tree6aa28ae70df1bcde7762609770eb45d991839ee4
parent4cb8fee5ffb297719e1ffd8ec9fd7a24f9ac45a5 (diff)
downloadsqalchemy-migrate-7ce76aaab64ce11426a03a908ec15315a925bd74.tar.gz
fixed issue 129
-rw-r--r--docs/versioning.rst6
-rw-r--r--migrate/versioning/api.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/versioning.rst b/docs/versioning.rst
index d2d8c47..28a0dc7 100644
--- a/docs/versioning.rst
+++ b/docs/versioning.rst
@@ -63,7 +63,7 @@ The database is specified as a `SQLAlchemy database url`_.
::
- $ python my_repository/manage.py version_control sqlite:///project.db
+ $ python my_repository/manage.py version_control sqlite:///project.db my_repository
We can have any number of databases under this repository's version
control.
@@ -72,7 +72,7 @@ Each schema has a version that SQLAlchemy Migrate manages. Each change
script applied to the database increments this version number. You can
see a database's current version::
- $ python my_repository/manage.py db_version sqlite:///project.db
+ $ python my_repository/manage.py db_version sqlite:///project.db my_repository
0
A freshly versioned database begins at version 0 by default. This
@@ -84,7 +84,7 @@ and applying change scripts changes the database's version number.
Similarly, we can also see the latest version available in a
repository with the command::
- $ python my_repository/manage.py version
+ $ python my_repository/manage.py version my_repository
0
We've entered no changes so far, so our repository cannot upgrade a
diff --git a/migrate/versioning/api.py b/migrate/versioning/api.py
index bde1f30..570dc08 100644
--- a/migrate/versioning/api.py
+++ b/migrate/versioning/api.py
@@ -119,7 +119,7 @@ def script_sql(database, description, repository, **opts):
For instance, manage.py script_sql postgresql description creates:
repository/versions/001_description_postgresql_upgrade.sql and
- repository/versions/001_description_postgresql_postgres.sql
+ repository/versions/001_description_postgresql_downgrade.sql
"""
repo = Repository(repository)
repo.create_script_sql(database, description, **opts)