ignore missing model for cache

This commit is contained in:
j 2018-11-16 15:57:05 +00:00
parent 71311b323e
commit e2ea4e3aab

View file

@ -312,7 +312,10 @@ if __name__ == "__main__":
run('./manage.py', 'compile_pyc', '-p', '.')
os.chdir(join(base, 'pandora'))
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])
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])