Skip to content

Commit a4243c0

Browse files
committed
Merge pull request #9 from quantopian/migration_fixes
Migration fixes
2 parents f9d1111 + 94ceafe commit a4243c0

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

bin/pgcontents

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def init(db_url, revision, prompt):
9393
click.echo("Initializing pgcontents...")
9494
if prompt:
9595
click.confirm(CONFIRM_MIGRATION, abort=True)
96-
upgrade(db_url, revision)
96+
upgrade(db_url, revision)
9797

9898
click.echo('Initialization completed successfully.')
9999

pgcontents/checkpoints.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,6 @@ def create_file_checkpoint(self, content, format, path):
6060
with self.engine.begin() as db:
6161
return save_remote_checkpoint(db, self.user_id, path, b64_content)
6262

63-
@outside_root_to_404
64-
def rename_checkpoint(self, checkpoint_id, old_path, new_path):
65-
"""Rename a checkpoint from old_path to new_path."""
66-
with self.engine.begin() as db:
67-
return move_single_remote_checkpoint(
68-
db, old_path, new_path, checkpoint_id,
69-
)
70-
7163
@outside_root_to_404
7264
def delete_checkpoint(self, checkpoint_id, path):
7365
"""delete a checkpoint for a file"""

pgcontents/utils/migrate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def temp_alembic_ini(alembic_dir_location, sqlalchemy_url):
2424
with open(alembic_ini_filename, 'w') as f:
2525
f.write(
2626
ALEMBIC_INI_TEMPLATE.format(
27-
alembic_dir_location=ALEMBIC_DIR_LOCATION,
27+
alembic_dir_location=alembic_dir_location,
2828
sqlalchemy_url=sqlalchemy_url,
2929
)
3030
)

0 commit comments

Comments
 (0)