Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a 'rename' command. #204

Closed
Ovid opened this issue Dec 5, 2014 · 1 comment
Closed

Add a 'rename' command. #204

Ovid opened this issue Dec 5, 2014 · 1 comment

Comments

@Ovid
Copy link
Collaborator

Ovid commented Dec 5, 2014

We're looking at best practices for sqitch and we're considering ways of using subdirectories, such as:

sqitch add $table_name/add_column_foo

(Obviously, migrations spanning multiple tables might be handled differently).

Such a scheme would allow us to fairly easily see the history for a given table. However, we'd like to move our old migrations to the new structure. Currently this appears to involve updating events.change, changes.change, and dependencies.dependency in the sqitch database and all relevant entries sqitch.plan file. That's fraught with error and if the sqitch.plan format changes, or the database schema changes, any tools we build might break.

I would love to be able to do this:

sqitch rename $old_name $new_name
@theory
Copy link
Collaborator

theory commented Dec 23, 2014

I think you're going to want have something likesqitch rebase --force --log-only. That functionality is currently under discussion in #200.

@theory theory closed this as completed Dec 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants