Forcing InnoDB over MyISAM

More
1 year 11 months ago - 1 year 11 months ago #156072 by blocka
I'm implementing data encryption at rest with mariaDB, and thus I require that all tables be created as InnoDB, instead of myISAM.

When I activate a survey, the response table is created as myISAM. I can see in MysqlSchema.php that the option for myISAM is hard coded into the createTable function.

While I can hack this of course, it won't persist across a future ComfortUpdate. While I could chattr the file to protect it from updates, it would be preferable if there was a config option to determine which database engine should be used.

The function looks like it could accept options:
public function createTable($table, $columns, $options = null) {
        if(empty($options))
        {
            $options='ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci';
        }


But I don't see where I could set this.

Any ideas?
Last edit: 1 year 11 months ago by blocka.

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
1 year 10 months ago #156320 by ollehar
Replied by ollehar on topic Forcing InnoDB over MyISAM
Feel free to construct a pull request with this feature.

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #167649 by TonisOrmisson

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #182405 by dday01
Replied by dday01 on topic Forcing InnoDB over MyISAM
Hi,
the is solved?
there are versions that don't have this problem?

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #182414 by jelo
Replied by jelo on topic Forcing InnoDB over MyISAM

dday01 wrote: Hi,
the is solved?
there are versions that don't have this problem?


The feature offered by Tonis is not merged into the codebase of LimeSurvey.
You can follow the discussion via the link already posted by Tonis.
github.com/LimeSurvey/LimeSurvey/pull/1043

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!