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

Adding the ability to rename columns #39

Merged
merged 9 commits into from
Oct 13, 2014

Conversation

erikogan
Copy link
Contributor

...And keep the data in them.

I tried to keep the most invasive changes within the Intersection class.

@erikogan
Copy link
Contributor Author

This is the last one, I promise. :)


definition = col[:type]
definition += " NOT NULL" unless col[:is_nullable]
definition += " DEFAULT #{col[:column_default]}" if col[:column_default]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make sure this line is covered by the tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually finished that on the plane on Tuesday. As it turns out the code as written is wrong. <gasp!>

I’m at a company retreat for the next few days, but I’ll try to get that and the build failures fixed as soon as I have a free moment.

@ghost
Copy link

ghost commented Jun 27, 2013

Looks good!

@ghost
Copy link

ghost commented Jun 27, 2013

And the builds needs work :)

@ghost
Copy link

ghost commented Jun 27, 2013

The ActiveRecord failure is a timing issue, and the DM failures might be related to f821ce2#L1L54

@ghost
Copy link

ghost commented Jul 10, 2013

👍

Needs a rebase though, the branch conflicts with the recently added conditional migrations.

@erikogan
Copy link
Contributor Author

I just rebased off the latest master (squashing the fix into the original commit in the process). This fixes the conflicts with conditional-migrations.

Sorry for the delay!

@erikogan
Copy link
Contributor Author

Always good to make sure you haven’t switched branches before running tests.

Oops.

...And keep the data in them.
Use the adapter to quote the value.
@erikogan
Copy link
Contributor Author

Bump. @lgierth is there anything else that needs to be done before this PR is merged?

@ghost
Copy link

ghost commented Sep 24, 2013

Looks good to me, but I left SoundCloud and can't merge. @pellegrino @durran WDYT?

@liuming
Copy link

liuming commented Oct 4, 2013

@pellegrino @durran anyone wanna merge this? It'll be useful.

@troessner
Copy link

I'd be interested in that as well. Any updates on this?

@bogdan
Copy link
Contributor

bogdan commented Mar 7, 2014

+1 for this.
Why still not reviewed and merged?

@StarkMike
Copy link

+1 for this

@arthurnn
Copy link
Contributor

arthurnn commented May 7, 2014

I will review this today, and merge it up... thanks for the patch, and sorry for the delay

@arthurnn
Copy link
Contributor

arthurnn commented May 8, 2014

trying to merge this, but I am getting a local test falling.. Could you rebase and as soon as tests are 💚 I will :shipit: ..
thanks

@dmitry
Copy link

dmitry commented Jul 8, 2014

@erikogan can it be rebased and merged?

@erikogan
Copy link
Contributor Author

erikogan commented Jul 8, 2014

I barely remember these changes now, but I’ll rebase/merge (depending on conflicts) the latest master and see if I can see what’s going on with the tests.

@erikogan
Copy link
Contributor Author

Along the way I did a minor refactor of the spec setup scripts in bin/

In retrospect that should probably have been a separate branch, to be evaluated out of this context. If they end up being controversial in any way I can break them out.

I also merged my other pull-request into this branch because it was discovered trying to get these specs to pass, and WAS a separate issue.

@erikogan
Copy link
Contributor Author

@arthurnn Any luck merging this? I would hate for us to diverge again.

@arthurnn
Copy link
Contributor

I will take a final look on this. thanks

@erikogan
Copy link
Contributor Author

@arthurnn Any further progress on merging this?

@shaley91
Copy link

shaley91 commented Oct 3, 2014

Any update on this PR? Would be good to get it merged.

@grobie
Copy link
Contributor

grobie commented Oct 3, 2014

Looks good to me. @arthurnn Let's merge?

arthurnn added a commit that referenced this pull request Oct 13, 2014
Adding the ability to rename columns
@arthurnn arthurnn merged commit 3cfa57c into soundcloud:master Oct 13, 2014
@arthurnn
Copy link
Contributor

great.. thanks for this PR.. ❤️

@shaley91 shaley91 mentioned this pull request Dec 17, 2014
@@ -25,7 +25,7 @@ def initialize(migration, connection = nil, options = {})
def execute
return unless @start && @limit
@next_to_insert = @start
until @next_to_insert >= @limit
while @next_to_insert < @limit || (@next_to_insert == 1 && @start == 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was the assumption here that the id of a table with a single record was always 1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants