1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-06-28 16:06:49 +00:00
seafile-server/scripts/upgrade/win32/py/upgrade_1.8_2.0.py
2016-08-19 13:54:16 +08:00

20 lines
371 B
Python

# coding: UTF-8
from upgrade_common import upgrade_db
from add_collate import upgrade_collate
def main():
try:
upgrade_db('2.0.0')
upgrade_collate()
except Exception, e:
print 'Error:\n', e
else:
print '\ndone\n'
finally:
print '\nprint ENTER to exit\n'
raw_input()
if __name__ == '__main__':
main()