From e2ea4e3aabfb3970a644965450a49d995fa3a56a Mon Sep 17 00:00:00 2001 From: j Date: Fri, 16 Nov 2018 15:57:05 +0000 Subject: [PATCH] ignore missing model for cache --- update.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/update.py b/update.py index e5a41f06c..e40f240be 100755 --- a/update.py +++ b/update.py @@ -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])