Conversation
ekzyis
left a comment
There was a problem hiding this comment.
No, the WalletName enum loses a value (LIFPAY), which is not backwards compatible.
I agree that removing the enum value from WalletName will cause downtime.
Therefore, I think we can keep this simple and only migrate the lightning addresses and remove the wallet from the UI.
Then the migration should also be a lot simpler. I haven't tried it myself yet, but I expected something simpler.
encryption key? |
|
I agree with just doing the migration by removing lifpay only from the UI, it's definitely easier that way. |
Sorry, I was referring to the foreign key constraint |
|
In this commit I simplified the migration, kept lifpay in the database and otherwise followed the instructions given |
ekzyis
left a comment
There was a problem hiding this comment.
do not create two migrations to do one thing
ekzyis
left a comment
There was a problem hiding this comment.
Is this migration not enough?
UPDATE "Wallet"
SET "templateName" = 'LN_ADDR'
WHERE "templateName" = 'LIFPAY'| AND la."address" IS NOT NULL | ||
| AND btrim(la."address") <> '' |
What did you mean with "migration order"? Do you mean the migration itself? What about the PR description? Did you write it yourself? |
Description
fix #2613
Lifpay Wallet Completely Removed
This ensures there are no new Lifpay attachments, no remaining Lifpay templates, and that existing users continue to receive via their Lightning address in LN_ADDR, if any.
Screenshots
Additional Context
Checklist
Are your changes backward compatible? Please answer below:
No, the WalletName enum loses a value (LIFPAY), which is not backwards compatible.
On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:
7/10
For frontend changes: Tested on mobile, light and dark mode? Please answer below:
NaN
Did you introduce any new environment variables? If so, call them out explicitly here:
No
Did you use AI for this? If so, how much did it assist you?
Yes, to draft the migration order.