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

MySQL support #68

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

MySQL support #68

wants to merge 3 commits into from

Conversation

clarif
Copy link

@clarif clarif commented Jun 5, 2012

MySQL support added. Still need to work on it, especially on the localization model which includes SQL requests for both MySQL and Postgres. But that works; might be useful for those of us willing to use this nice tool with their favorite DB server.

'key' alone is a reserved keyword in MySQL.
This is a (working) temporary solution based on SQL requests provided here: copycopter#64 (comment). Works for MySLQ and Postres; should be updated with ActiveRecord methods calls to be database agnostic.
The migration alters those fields to LONGTEXT. With TEXT, data were truncated. The :limit => 16777217 forces AR to use LONGTEXT.
@patricksrobertson
Copy link
Contributor

I'd love to see code that doesn't have if statements based on the DB type. We should probably endeavor to either maintain PG solely or make the database calls generic enough to be supported by all/most DB's.

Holding off merging for now.

@opsidao
Copy link

opsidao commented Aug 13, 2012

So, any plans on merging/developing this? We'd love if we were able to run the server against MySQL...

@lazypower
Copy link

All I know is i copied this into my own installation and it worked like a charm. Thanks for the patch Clarif

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

Successfully merging this pull request may close these issues.

None yet

4 participants