Skip to content

Conversation

@KvngMikey
Copy link

@KvngMikey KvngMikey commented Nov 22, 2025

Fixes #717

Summary

This PR completes the deprecation and removal of the legacy paid boolean field in mint_quotes, fully migrating the system to rely on the state field as the single source of truth for quote payment status.

  • Tests depending on the legacy paid field were updated.
  • Foreign-key–related failures caused by table recreation were fixed by explicitly restoring the correct schema during the migration.
  • All pytest suites pass successfully with pytest -v.

@KvngMikey KvngMikey changed the title Deprecate Paid field in MintQuote Remove paid field in MintQuote Dec 17, 2025
@KvngMikey KvngMikey force-pushed the deprecate-paid-in-mint branch from 0a00497 to 8e53fe8 Compare December 17, 2025 20:26
"WHERE witness IS NOT NULL AND LENGTH(witness) > 1024"
)

async def m030_remove_paid_from_mint_quote(db: Database):
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason we don't just ALTER TABLE DROP COLUMN? They introduced that in SQLite version 3.35.0 back in March of 2021.

@TheRealCheebs
Copy link
Contributor

It seems only the postgres tests are failing in CI. I don't see where you are dropping the paid column for postgres, only if conn.type == "SQLITE"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Todo: deprecate paid field in MintQuote

3 participants