Homec4science

sqlalchemy: default mysql parameters for db.Table

Authored by Artem Tsikiridis <artem.tsikiridis@cern.ch> on Nov 6 2014, 16:59.

Description

sqlalchemy: default mysql parameters for db.Table

  • Adds default parameters to db.Table constructor to force MyISAM engine for MySQL backend. db.Table is InnoDB by default on modern versions of MySQL. Hence, foreign keys can now be set on db.Model fields because both are using MyISAM as an engine. (closes #2491)

Signed-off-by: Artem Tsikiridis <artem.tsikiridis@cern.ch>
Reviewed-by: Gilles Louppe <gilles.louppe@cern.ch>

Details

Committed
Artem Tsikiridis <artem.tsikiridis@cern.ch>Nov 11 2014, 17:08
Parents
R3600:a9dd2a8aceac: records: display tabs
Branches
Unknown
Tags
Unknown

Event Timeline

Artem Tsikiridis <artem.tsikiridis@cern.ch> committed R3600:71510f1b962b: sqlalchemy: default mysql parameters for db.Table (authored by Artem Tsikiridis <artem.tsikiridis@cern.ch>).Nov 11 2014, 17:08