Index: management.py =================================================================== --- management.py (revision 3137) +++ management.py (working copy) @@ -339,7 +339,7 @@ (?:[^;'"]+) # not the end of a statement or start of a quote | (?:'[^']*') # something in single quotes | (?:"[^"]*") # something in double quotes - )+)""", re.VERBOSE) + )+;?\n?)""", re.VERBOSE) # Find custom SQL, if it's available. sql_files = [os.path.join(app_dir, "%s.%s.sql" % (opts.object_name.lower(), settings.DATABASE_ENGINE)),