10 lines
216 B
Python
10 lines
216 B
Python
|
import sys
|
||
|
import asyncio
|
||
|
from .src.db.pg import migrate
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
if len(sys.argv) < 2:
|
||
|
raise RuntimeError('you need to specify target revision')
|
||
|
asyncio.run(migrate(sys.argv[1]))
|