Skip to content

Commit

Permalink
add upgrade script for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lins05 committed Jan 29, 2015
1 parent d8a38de commit ed023db
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions scripts/upgrade/win32/py/upgrade_3.1_4.0.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# coding: UTF-8

import os

from upgrade_common import install_path, ccnet_dir, seafile_dir, upgrade_db, run_argv

def main():
try:
upgrade_db('4.0.0')
except Exception, e:
print 'Error:\n', e
else:
print '\ndone\n'
finally:
print '\nprint ENTER to exit\n'
raw_input()

if __name__ == '__main__':
main()
4 changes: 4 additions & 0 deletions scripts/upgrade/win32/upgrade_3.1_4.0.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@echo off
cd /d %~dp0
set PYTHONPATH=%PYTHONPATH%;%~dp0\..\seahub\thirdpart
start python py/upgrade_3.1_4.0.py

0 comments on commit ed023db

Please sign in to comment.