Skip to content

Commit

Permalink
remove unused migration (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc authored May 16, 2023
1 parent 01766a6 commit 4771c24
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ async def m001_initial(db):
)


async def m002_add_mint_settings(db):
"""
Add mint options.
"""
await db.execute("ALTER TABLE cashu.cashu ADD COLUMN max_mint INT;")
await db.execute("ALTER TABLE cashu.cashu ADD COLUMN redeemed_sat INT;")
await db.execute(
"ALTER TABLE cashu.cashu ADD COLUMN peg_out_only BOOL DEFAULT false;"
)
await db.execute("ALTER TABLE cashu.cashu ADD COLUMN mint_information TEXT;")
# delete tables tickershort, fraction, coins
await db.execute("ALTER TABLE cashu.cashu DROP COLUMN tickershort;")
await db.execute("ALTER TABLE cashu.cashu DROP COLUMN fraction;")
await db.execute("ALTER TABLE cashu.cashu DROP COLUMN coins;")
# async def m002_add_mint_settings(db):
# """
# Add mint options.
# """
# await db.execute("ALTER TABLE cashu.cashu ADD COLUMN max_mint INT;")
# await db.execute("ALTER TABLE cashu.cashu ADD COLUMN redeemed_sat INT;")
# await db.execute(
# "ALTER TABLE cashu.cashu ADD COLUMN peg_out_only BOOL DEFAULT false;"
# )
# await db.execute("ALTER TABLE cashu.cashu ADD COLUMN mint_information TEXT;")
# # delete tables tickershort, fraction, coins
# await db.execute("ALTER TABLE cashu.cashu DROP COLUMN tickershort;")
# await db.execute("ALTER TABLE cashu.cashu DROP COLUMN fraction;")
# await db.execute("ALTER TABLE cashu.cashu DROP COLUMN coins;")

0 comments on commit 4771c24

Please sign in to comment.