HomePhabricator
Diffusion Comm eaf79b7b72a8

[nix] Set db variables in our local environments

Description

[nix] Set db variables in our local environments

Summary:
issue: https://linear.app/comm/issue/ENG-3349/test-setting-innodb-ft-min-token-size
In D7266 we set innodb-ft-min-token-size and innodb-ft-enable-stopword variables in the db run in Docker. We also need a way for these variable to be set in our local environments. This diff addresses the Nix
MariaDB instances. The legacy instances will have to be updated manually, and a proper instruction will be provided in the linear task, as well as on the Comm Dev Team channel.
I would be grateful if someone could check if the messages printed by db_usage and usage functions are reasonable.

Test Plan: Running a nix db instance, I ran comm-dev db restart and checked that the variables were set to 1 and 0, respectively.

Reviewers: jon, ashoat

Reviewed By: jon, ashoat

Subscribers: tomek, atul

Differential Revision: https://phab.comm.dev/D7296

Details

Provenance
InkaSokolowskaAuthored on Apr 5 2023, 2:49 AM
Reviewer
jon
Differential Revision
D7296: [nix] Set db variables in our local environments
Parents
rCOMM7a855541b424: [native] introduce ColorRows component
Branches
Unknown
Tags
Unknown