I'm wondering why module doesn't support a backup of the table properties such as engine, charset and comment:
ENGINE=InnoDB DEFAULT CHARSET=utf8 and so on.

This is actually required piece of the schema as soon as dump is being restored. It would be greatly appreciated to have such feature in place.

Comments

bigjim’s picture

+1

dboulet’s picture

+1. Without this all my restored tables get created as MyISAM.

Shai’s picture

+1

ronan’s picture

Status: Active » Postponed (maintainer needs more info)

I'm using a 'show create table' sql command to generate the table create so I'm not sure why it wouldn't be returning the full table schema in your case. Can you run 'show create table node' on your server using the mysql command line (or phpMyAdmin) and let me know what the output is? What version of MySQL are you using?

Thanks

ronan’s picture

Version: 7.x-2.1 » 7.x-2.x-dev
Assigned: Unassigned » ronan
Category: feature » bug
Status: Postponed (maintainer needs more info) » Active

I looked into this further and it looks like DBTNG sets the db to ANSI, TRADITIONAL mode which doesn't expose the extra table info. I'll need to switch this mode back during export. I'll have to do some testing to figure out if this breaks anything else.

ronan’s picture

Status: Active » Fixed

The latest dev should fix this by setting the SQL_MODE before creating the dump. Let me know if it's working.

dboulet’s picture

Status: Fixed » Active

Doesn't seem to have made any difference for me. Is there anything special that should be done to get it to work?

dboulet’s picture

Status: Closed (fixed) » Fixed

Looks like I spoke too soon, seems to be working today.

Status: Active » Closed (fixed)

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

Status: Fixed » Closed (fixed)

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