sqlalchemy-migrate does not find change file for version
up vote
0
down vote
favorite
I am evaluating SQLAlchemy-migrate as a database migration tool. My db_version is 0, and the repository version is 1.
$ python manage.py db_version --url=postgresql://localhost:5432/my_db
0
$ python manage.py version
1
and I only have one unapplied version:
./versions/001_initial_schema_postgres_upgrade.sql
I run the migration tool, but it won't upgrade because it can't find the version:
$ python manage.py upgrade --version 1 --url=postgresql://localhost:5432/my_db
"There is no script for %d version" % self.version
AssertionError: There is no script for 1 version
Am I doing something wrong so that the migrate tool can't find my change script?
python sqlalchemy sqlalchemy-migrate
add a comment |
up vote
0
down vote
favorite
I am evaluating SQLAlchemy-migrate as a database migration tool. My db_version is 0, and the repository version is 1.
$ python manage.py db_version --url=postgresql://localhost:5432/my_db
0
$ python manage.py version
1
and I only have one unapplied version:
./versions/001_initial_schema_postgres_upgrade.sql
I run the migration tool, but it won't upgrade because it can't find the version:
$ python manage.py upgrade --version 1 --url=postgresql://localhost:5432/my_db
"There is no script for %d version" % self.version
AssertionError: There is no script for 1 version
Am I doing something wrong so that the migrate tool can't find my change script?
python sqlalchemy sqlalchemy-migrate
1
I know that this isn't answering your question, but I haven't used SQLAlchemy-migrate and so I thought I'd have a look at the source. It doesn't seem to be very actively maintained (e.g. latest python they have tested on is 3.4 which was released in 2014). If you are just learning and want to try something more actively maintained try alembic which is another sqlalchemy based migration tool. If you need/prefer to use sqlalchemy-migrate then feel free to disregard!
– SuperShoot
Nov 11 at 9:00
Thanks! I’ll take a look at alembic.
– wrattlesnake_wrangler
Nov 11 at 17:04
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am evaluating SQLAlchemy-migrate as a database migration tool. My db_version is 0, and the repository version is 1.
$ python manage.py db_version --url=postgresql://localhost:5432/my_db
0
$ python manage.py version
1
and I only have one unapplied version:
./versions/001_initial_schema_postgres_upgrade.sql
I run the migration tool, but it won't upgrade because it can't find the version:
$ python manage.py upgrade --version 1 --url=postgresql://localhost:5432/my_db
"There is no script for %d version" % self.version
AssertionError: There is no script for 1 version
Am I doing something wrong so that the migrate tool can't find my change script?
python sqlalchemy sqlalchemy-migrate
I am evaluating SQLAlchemy-migrate as a database migration tool. My db_version is 0, and the repository version is 1.
$ python manage.py db_version --url=postgresql://localhost:5432/my_db
0
$ python manage.py version
1
and I only have one unapplied version:
./versions/001_initial_schema_postgres_upgrade.sql
I run the migration tool, but it won't upgrade because it can't find the version:
$ python manage.py upgrade --version 1 --url=postgresql://localhost:5432/my_db
"There is no script for %d version" % self.version
AssertionError: There is no script for 1 version
Am I doing something wrong so that the migrate tool can't find my change script?
python sqlalchemy sqlalchemy-migrate
python sqlalchemy sqlalchemy-migrate
asked Nov 10 at 21:19
wrattlesnake_wrangler
12
12
1
I know that this isn't answering your question, but I haven't used SQLAlchemy-migrate and so I thought I'd have a look at the source. It doesn't seem to be very actively maintained (e.g. latest python they have tested on is 3.4 which was released in 2014). If you are just learning and want to try something more actively maintained try alembic which is another sqlalchemy based migration tool. If you need/prefer to use sqlalchemy-migrate then feel free to disregard!
– SuperShoot
Nov 11 at 9:00
Thanks! I’ll take a look at alembic.
– wrattlesnake_wrangler
Nov 11 at 17:04
add a comment |
1
I know that this isn't answering your question, but I haven't used SQLAlchemy-migrate and so I thought I'd have a look at the source. It doesn't seem to be very actively maintained (e.g. latest python they have tested on is 3.4 which was released in 2014). If you are just learning and want to try something more actively maintained try alembic which is another sqlalchemy based migration tool. If you need/prefer to use sqlalchemy-migrate then feel free to disregard!
– SuperShoot
Nov 11 at 9:00
Thanks! I’ll take a look at alembic.
– wrattlesnake_wrangler
Nov 11 at 17:04
1
1
I know that this isn't answering your question, but I haven't used SQLAlchemy-migrate and so I thought I'd have a look at the source. It doesn't seem to be very actively maintained (e.g. latest python they have tested on is 3.4 which was released in 2014). If you are just learning and want to try something more actively maintained try alembic which is another sqlalchemy based migration tool. If you need/prefer to use sqlalchemy-migrate then feel free to disregard!
– SuperShoot
Nov 11 at 9:00
I know that this isn't answering your question, but I haven't used SQLAlchemy-migrate and so I thought I'd have a look at the source. It doesn't seem to be very actively maintained (e.g. latest python they have tested on is 3.4 which was released in 2014). If you are just learning and want to try something more actively maintained try alembic which is another sqlalchemy based migration tool. If you need/prefer to use sqlalchemy-migrate then feel free to disregard!
– SuperShoot
Nov 11 at 9:00
Thanks! I’ll take a look at alembic.
– wrattlesnake_wrangler
Nov 11 at 17:04
Thanks! I’ll take a look at alembic.
– wrattlesnake_wrangler
Nov 11 at 17:04
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243517%2fsqlalchemy-migrate-does-not-find-change-file-for-version%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
I know that this isn't answering your question, but I haven't used SQLAlchemy-migrate and so I thought I'd have a look at the source. It doesn't seem to be very actively maintained (e.g. latest python they have tested on is 3.4 which was released in 2014). If you are just learning and want to try something more actively maintained try alembic which is another sqlalchemy based migration tool. If you need/prefer to use sqlalchemy-migrate then feel free to disregard!
– SuperShoot
Nov 11 at 9:00
Thanks! I’ll take a look at alembic.
– wrattlesnake_wrangler
Nov 11 at 17:04