Um yeah I suppose I could let the DAL create the tables all itself and therefore also generate all of the expected .table files in the database folder and then go back in afterwards and do the actual DB restore on top of the new empty database. But it seems like I shouldn't really have to play tricks like that.
The traceback error message is basically can't create table_name_archive an object with that name already exists. Sorry, don't have access to my work PC right now but that's the gist of it - can't create it is is already there. It is the same error you'd get with any other table should you forget to turn off migrations/enable fake_migrate except there seems to be no way to do that for the automatically generated _archive tables you get with _enable_record_versioning(). On Monday, February 22, 2016 at 8:54:29 PM UTC-6, Richard wrote: > > What is the traceback error message? > > On Mon, Feb 22, 2016 at 9:53 PM, Brian M <bmer...@gmail.com <javascript:>> > wrote: > >> The restore was done with MS SQL Server's built-in backup & restore so >> yes it has all of the tables and info. The dozens of other tables in my >> database worked just fine with migrate=False, it seems to be just the few >> _archive ones that are having issues. >> >> On Monday, February 22, 2016 at 8:39:22 PM UTC-6, Richard wrote: >>> >>> If you restore database like for like, why are you bother with >>> fake_migrate... Just leave everything to migrate=False should be alright if >>> you dump contains all the tables... >>> >>> Richard >>> >>> On Mon, Feb 22, 2016 at 4:55 PM, Brian M <bmer...@gmail.com> wrote: >>> >>>> I seem to have run into a problem with tables I'm using >>>> _enable_record_versioning() with. I'm setting up on a new computer and >>>> have >>>> restored a DB backup to the new computer. Now when I try to run pages that >>>> utilize those tables the database is complaining that the _archive tables >>>> already exist. I've tried >>>> db.table_name._enable_record_versioning(fake_migrate=True) but that >>>> argument isn't expected. I've tried using fake_migrate_all=True in the DAL >>>> connection but that doesn't do it either. So what can I do to get web2py >>>> to >>>> recognize that the archive table is already there and it doesn't need to >>>> try to recreate it. >>>> >>>> Brian >>>> >>>> -- >>>> Resources: >>>> - http://web2py.com >>>> - http://web2py.com/book (Documentation) >>>> - http://github.com/web2py/web2py (Source code) >>>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "web2py-users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to web2py+un...@googlegroups.com. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+un...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.