The problem is figure out what when wrong. Not so much fixing it. For normal web2py apps (except T3) the fix is always the following: 1) edit the table to match what is in the database 2) delete all databales/*.table files 3) set migrate=False, fake_migrate=True
for T3 things may be more complex because the models themselves are stored in the database. ca you tell us more about what you did and problems you experienced? On May 21, 9:41 pm, GoldenTiger <goldenboy...@gmail.com> wrote: > really? that would be a very usefull information! I feel more secure > now thank you alot professor Massimo!!!! :DD > > is via shell or via web? > > On 22 mayo, 03:31, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > Everything can be recovered but the details of how to do it depend on > > an exact diagnosis of what happened. > > > I will try draft some guildelines for recovery. > > > On May 21, 6:43 pm, GoldenTiger <goldenboy...@gmail.com> wrote: > > > > I copy-pasted some models that I previosuly defined in another web2py > > > app, to configure models for an T3 new page. > > > > By mistake, I copied all content from db.py ,and pasted in configure > > > models, and i submitted. > > > > This provoked duplicated tables and variables, and an already defined > > > error in default controller, and in appdmin controller. > > > > So i don`t know how to roll back from web2py interface. I tried to > > > delete sqlite files created, leaving only the storage.db of T3 , with > > > no success. I think I did this well, maybe I am wrong. > > > > Editing sqlite file with external app is too tedious, so I start again > > > to coding, because i had only a few of data, and also it is more > > > funny, > > > > I f I were in a production environment, what should I do? > > > Any solution for future mistakes like this? > > > > How could I add code to T3 to protect me from myself? ^^ > > > > Thanks