Skip db migration in windows
This commit is contained in:
parent
7bd05e9b16
commit
3f95c1a9d5
1 changed files with 3 additions and 0 deletions
|
@ -1,9 +1,12 @@
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
def migrate_db(db_dir, start, end):
|
def migrate_db(db_dir, start, end):
|
||||||
current = start
|
current = start
|
||||||
old_dirs = []
|
old_dirs = []
|
||||||
|
if os.name == "nt":
|
||||||
|
return old_dirs
|
||||||
while current < end:
|
while current < end:
|
||||||
if current == 0:
|
if current == 0:
|
||||||
from lbrynet.db_migrator.migrate0to1 import do_migration
|
from lbrynet.db_migrator.migrate0to1 import do_migration
|
||||||
|
|
Loading…
Add table
Reference in a new issue