After installing DBTNG and Migrate 2, I received database errors that the table "migrate_status" was missing. My database uses prefixed tables, and after further testing it looked like db_prefix was not being accounted for.

I have attached a patch that loads prefix information into the $databases global array in dbtng_init(). This is working as expected in my current implementation, and is now correctly prefixing tables when performing queries.

I saw a couple other prefix-related issues in issue queue, but they didn't seem to be the same issue as what I encountered. Sorry if this is a duplicate... hopefully this is helpful.

CommentFileSizeAuthor
fix_prefix.patch1.22 KBjustin2pin

Comments

jonathan webb’s picture

Status: Needs review » Reviewed & tested by the community

Worked for me on alpha7

Ryan Palmer’s picture

I had the exact same issue, and this patch worked for me as well.

mikey_p’s picture

Status: Reviewed & tested by the community » Fixed

HI, I think a fix for this made it into dbtng 6.x-1.x branch before you submitted this patch. Please try rc1 or rc2 when it's out and let me know if you still have this problem.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.