forked from 0x2620/pandora
ignore missing model for cache
This commit is contained in:
parent
71311b323e
commit
e2ea4e3aab
1 changed files with 4 additions and 1 deletions
|
@ -312,7 +312,10 @@ if __name__ == "__main__":
|
||||||
run('./manage.py', 'compile_pyc', '-p', '.')
|
run('./manage.py', 'compile_pyc', '-p', '.')
|
||||||
os.chdir(join(base, 'pandora'))
|
os.chdir(join(base, 'pandora'))
|
||||||
diff = get('./manage.py', 'sqldiff', '-a').strip()
|
diff = get('./manage.py', 'sqldiff', '-a').strip()
|
||||||
if diff != '-- No differences':
|
if diff not in [
|
||||||
|
'-- No differences',
|
||||||
|
'BEGIN;\n-- Model missing for table: cache\nCOMMIT;'
|
||||||
|
]:
|
||||||
print('Database has changed, please make a backup and run %s db' % sys.argv[0])
|
print('Database has changed, please make a backup and run %s db' % sys.argv[0])
|
||||||
elif not development:
|
elif not development:
|
||||||
print('pan.do/ra is at the latest release,\nyou can run "%s dev" to update to the development version' % sys.argv[0])
|
print('pan.do/ra is at the latest release,\nyou can run "%s dev" to update to the development version' % sys.argv[0])
|
||||||
|
|
Loading…
Reference in a new issue