This commit is contained in:
ben 2023-01-05 22:21:40 +00:00
parent 96b07af331
commit 84c4643e1b

View File

@ -1,5 +1,6 @@
import time
async def m001_initial(db):
"""
Initial Gertys table.
@ -60,6 +61,7 @@ async def m005_add_gerty_model_col(db):
"""
await db.execute("ALTER TABLE gerty.gertys ADD COLUMN urls TEXT;")
async def m006_add_gerty_model_col(db):
"""
support for Gerty model col
@ -67,6 +69,7 @@ async def m006_add_gerty_model_col(db):
await db.execute("ALTER TABLE gerty.mempool RENAME TO mempool_old;")
await db.execute("ALTER TABLE gerty.mempool ADD COLUMN time FLOAT;")
async def m006_add_gerty_model_col(db):
"""
Add UUID ID's to links and migrates existing data
@ -107,4 +110,4 @@ async def m006_add_gerty_model_col(db):
),
)
await db.execute("DROP TABLE gerty.mempool_old")
await db.execute("DROP TABLE gerty.mempool_old")