#808: sql upgrade fails with 0.9.5a
-----------------------+----------------------------------------------------
Reporter: ivolooser | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 1.0
Component: SQLObject | Version: 0.9a5
Severity: normal | Keywords:
-----------------------+----------------------------------------------------
After {{{quickstart}}} with identity on sqlobject and {{{sql create}}} i
added one field to the {{{User}}} class
{{{
password = UnicodeCol( length=40 )
age = Int()
created = DateTimeCol( default=datetime.now )
}}}
after execution of
{{{
D:\Turbogear\project1>c:\Python24\Scripts\tg-admin sql upgrade
}}}
i got the error:
{{{
Using database URI sqlite:///d|/turbogear/project1/database.db
Traceback (most recent call last):
File "c:\Python24\Scripts\tg-admin-script.py", line 7, in ?
sys.exit(
File "c:\python24\lib\site-packages\TurboGears-0.9a5-
py2.4.egg\turbogears\comm
and\base.py", line 275, in main
command.run()
File "c:\python24\lib\site-packages\TurboGears-0.9a5-
py2.4.egg\turbogears\comm
and\base.py", line 134, in run
command.the_runner.run(sys.argv)
File "c:\python24\lib\site-packages\SQLObject-0.7.1dev_r1675-
py2.4.egg\sqlobje
ct\manager\command.py", line 102, in run
runner.run()
File "c:\python24\lib\site-packages\SQLObject-0.7.1dev_r1675-
py2.4.egg\sqlobje
ct\manager\command.py", line 233, in run
self.command()
File "c:\python24\lib\site-packages\SQLObject-0.7.1dev_r1675-
py2.4.egg\sqlobje
ct\manager\command.py", line 1063, in command
version_to = os.path.basename(self.find_last_version())
File "c:\python24\lib\ntpath.py", line 200, in basename
return split(p)[1]
File "c:\python24\lib\ntpath.py", line 164, in split
d, p = splitdrive(p)
File "c:\python24\lib\ntpath.py", line 119, in splitdrive
if p[1:2] == ':':
TypeError: unsubscriptable object
D:\Turbogear\project1>
}}}
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/808>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---