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

Fix Operation enum addition not on parity with release build #104

Closed
wants to merge 3 commits into from

Conversation

khanghugo
Copy link
Contributor

@khanghugo khanghugo commented Apr 15, 2024

Here is the SQL for migration

--
-- swap SetYawSpeed and SetFrameTime
-- SetYawspeed to BOGUS
UPDATE undo_log
SET action = CAST(x'6969' || substr(action, 3) as BLOB)
WHERE substr(action, 0, 3) == x'000d'; -- SetYawSpeed

-- SetFrameTime to old SetYawspeed
UPDATE undo_log
SET action = CAST(x'000d' || substr(action, 3) as BLOB)
WHERE substr(action, 0, 3) == x'000f'; -- SetFrameTime

-- BOGUS to old SetFrameTime
UPDATE undo_log
SET action = CAST(x'000f' || substr(action, 3) as BLOB)
WHERE substr(action, 0, 3) == x'6969';

--
-- swap SetAdjacentYawspeed and SetCommands
-- SetAdjacentYawspeed to BOGUS
UPDATE undo_log
SET action = CAST(x'6969' || substr(action, 3) as BLOB)
WHERE substr(action, 0, 3) == x'000e'; -- SetAdjacentYawspeed

-- SetCommands to old SetAdjacentYawspeed
UPDATE undo_log
SET action = CAST(x'000e' || substr(action, 3) as BLOB)
WHERE substr(action, 0, 3) == x'0010'; -- SetCommands

-- BOGUS to old SetCommands
UPDATE undo_log
SET action = CAST(x'0010' || substr(action, 3) as BLOB)
WHERE substr(action, 0, 3) == x'6969';

@khanghugo
Copy link
Contributor Author

Nevermind. I think I have been memory holed. The setframetime and setcommands are added after the set yawspeed. I thought they were there since forever.

@khanghugo khanghugo closed this Apr 15, 2024
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.

1 participant