add simple schema migration script

This commit is contained in:
lza_menace 2023-04-03 22:24:05 -07:00
parent a2dadc97c5
commit 726d2766e8
2 changed files with 20 additions and 0 deletions

View file

@ -321,6 +321,10 @@ def get_peers():
rw_cache('map_peers', list(Peer.select().execute()))
@app.cli.command('init')
def init():
pass
@app.cli.command("validate")
def validate():
nodes = Node.select().where(Node.validated == False)