Page MenuHomePhabricator

Fix SQL issue with Ponder migration
ClosedPublic

Authored by chad on Aug 8 2015, 5:56 PM.
Tags
None
Referenced Files
F13292334: D13830.id33399.diff
Wed, Jun 5, 3:12 AM
F13292332: D13830.id33398.diff
Wed, Jun 5, 3:12 AM
F13292331: D13830.id.diff
Wed, Jun 5, 3:12 AM
F13292329: D13830.diff
Wed, Jun 5, 3:12 AM
F13274461: D13830.diff
Fri, May 31, 3:43 AM
F13260502: D13830.diff
Mon, May 27, 12:00 AM
F13246953: D13830.diff
Thu, May 23, 2:25 PM
F13245832: D13830.diff
Thu, May 23, 6:17 AM
Subscribers

Details

Reviewers
epriestley
Commits
Restricted Diffusion Commit
rP736bda7081c9: Fix SQL issue with Ponder migration
Summary

This fails to apply on my second sandbox with incorrect DOUBLE value. Reran SQL, works as expected.

Test Plan

Rerun new SQL on ponder_question table

Diff Detail

Repository
rP Phabricator
Branch
sql-issue
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 7539
Build 8118: [Placeholder Plan] Wait for 30 Seconds
Build 8117: arc lint + arc unit

Event Timeline

chad retitled this revision from to Fix SQL issue with Ponder migration.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Aug 8 2015, 5:56 PM

Does the = 0 thing also need = '0' maybe?

It ran fine for me, but maybe it's best to do the quotes anyway? We convert the column first.

chad edited edge metadata.
  • Update 0 as well

Do you have somewhere to test this for sanity?

This revision was automatically updated to reflect the committed changes.

You can re-apply the patch as a general sanity check with bin/storage upgrade --apply phabricator: 20150806.ponder.status.2.sql.

MySQL might be a bit loose about typecasting 0, I'm not sure. I'll yell if this does naything bad on this server.