Skip to content

Commit

Permalink
migrations deleted.
Browse files Browse the repository at this point in the history
  • Loading branch information
jly8866 committed Mar 18, 2017
1 parent b2929c2 commit c92b17d
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 109 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
.DS_Store
archer/settings.py.github
archer/settings.py.dev
sql/migrations/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ self.server_version = '5.6.24-72.2-log'<br/>
5. 创建archer本身的数据库表:<br/>
(1)修改archer/archer/settings.py所有的地址信息,包括DATABASES和INCEPTION_XXX部分<br/>
(2)通过model创建archer本身的数据库表, 记得先去archer数据库里CREATE DATABASE<br/>
python3 manage.py makemigrations sql<br/>
python3 manage.py makemigrations或python3 manage.py makemigrations sql<br/>
python3 manage.py migrate<br/>
6. mysql授权:<br/>
记得登录到archer/archer/settings.py里配置的各个mysql里给用户授权<br/>
Expand Down
75 changes: 0 additions & 75 deletions sql/migrations/0001_initial.py

This file was deleted.

32 changes: 0 additions & 32 deletions sql/migrations/0002_auto_20170317_1627.py

This file was deleted.

Empty file removed sql/migrations/__init__.py
Empty file.
3 changes: 2 additions & 1 deletion sql/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ def autoreview(request):
if sqlContent is None or workflowName is None or clusterName is None or isBackup is None or reviewMan is None:
context = {'errMsg': '页面提交参数可能为空'}
return render(request, 'error.html', context)
elif sqlContent[-1] != ";":
sqlContent = sqlContent.rstrip()
if sqlContent[-1] != ";":
context = {'errMsg': "SQL语句结尾没有以;结尾,请后退重新修改并提交!"}
return render(request, 'error.html', context)

Expand Down

0 comments on commit c92b17d

Please sign in to comment.