mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-01-19 05:33:47 +01:00
add scrub to conv
This commit is contained in:
parent
bfb4006b02
commit
c340a55925
@ -1,9 +1,8 @@
|
||||
import psycopg2
|
||||
import sqlite3
|
||||
import os
|
||||
import argparse
|
||||
import os
|
||||
import sqlite3
|
||||
|
||||
|
||||
import psycopg2
|
||||
from environs import Env # type: ignore
|
||||
|
||||
env = Env()
|
||||
@ -703,6 +702,19 @@ def migrate_ext(sqlite_db_file, schema, ignore_missing=True):
|
||||
VALUES (%s, %s, %s, %s, %s, %s);
|
||||
"""
|
||||
insert_to_pg(q, res.fetchall())
|
||||
elif schema == "scrub":
|
||||
# SCRUB LINKS
|
||||
res = sq.execute("SELECT * FROM scrub.scrub_links;")
|
||||
q = f"""
|
||||
INSERT INTO scrub.scrub_links (
|
||||
id,
|
||||
wallet,
|
||||
description,
|
||||
payoraddress
|
||||
)
|
||||
VALUES (%s, %s, %s, %s);
|
||||
"""
|
||||
insert_to_pg(q, res.fetchall())
|
||||
else:
|
||||
print(f"❌ Not implemented: {schema}")
|
||||
sq.close()
|
||||
|
Loading…
Reference in New Issue
Block a user