Using './gen create scaffold' without a database gives an ugly error

Bug #603029 reported by Matt Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rootin Tootin
Confirmed
Medium
Unassigned

Bug Description

Ugly:
Traceback (most recent call last):
  File "/usr/bin/rootintootin_gen", line 84, in <module>
    generator.create_migration(controller_name, pairs[5:])
  File "/home/matt/Projects/rootintootin/bin/lib_rootintootin.py", line 347, in create_migration
    last_version = self.get_schema_version()
  File "/home/matt/Projects/rootintootin/bin/lib_rootintootin.py", line 623, in get_schema_version
    cursor.execute(query)
  File "/usr/lib/pymodules/python2.6/MySQLdb/cursors.py", line 166, in execute
    self.errorhandler(self, exc, value)
  File "/usr/lib/pymodules/python2.6/MySQLdb/connections.py", line 35, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.ProgrammingError: (1146, "Table 'file_uploads.schema_version' doesn't exist")

Matt Jones (workhorsy)
Changed in rester:
importance: Critical → Medium
Matt Jones (workhorsy)
Changed in rester:
milestone: 0.7 → 0.8
Matt Jones (workhorsy)
Changed in rester:
milestone: 0.8 → 0.9
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.