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

Change MySQL dependency to SQLite #49

Merged
merged 21 commits into from
Nov 1, 2015

Conversation

lionello
Copy link
Member

No description provided.

@lionello
Copy link
Member Author

Note: need a MySQL->SQLite migration script!

}
else {
mysql_query("UPDATE members.Users SET paid = paid - INTERVAL $months MONTH WHERE email = $email2", $link)
or mail_and_die('mysql_query UPDATE Users error');
$link->exec("UPDATE Users SET paid = DATE(paid, '-$months MONTH') WHERE email = '$email2'")
Copy link
Member

Choose a reason for hiding this comment

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

consider sprintf

@nihaopaul
Copy link
Member

conflicts on this branch also.

@lionello lionello force-pushed the sqlite branch 2 times, most recently from a74ef01 to 8d1917f Compare November 1, 2015 09:55
@lionello
Copy link
Member Author

lionello commented Nov 1, 2015

Rebased onto master.

Still need script to migrate the current MySQL DB. One way is to use mysqldump and manually patch the SQL syntax.

nihaopaul added a commit that referenced this pull request Nov 1, 2015
Change MySQL dependency to SQLite
@nihaopaul nihaopaul merged commit ed90a6c into xinchejian:master Nov 1, 2015
@lionello lionello deleted the sqlite branch November 4, 2015 05:59
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.

2 participants