Bug 10610: sort sysprefs.sql by syspref names
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 12 Aug 2013 14:10:03 +0000 (16:10 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 16 Aug 2013 18:41:47 +0000 (18:41 +0000)
commite94e37969825633116093a24dc7fc0afb5975648
tree05d9f70d554b0b8386adbc5d16c75fae41f31147
parent75f23ba7925d9a331cb221823d686c541591cbcf
Bug 10610: sort sysprefs.sql by syspref names

By sorting the sql syspref file, the frequency of merge conflicts
when dealing with it should be reduced.

Test plan:
- create a new DB with a new table named systempreferences (with the
  same structure as the one you know).
- insert the current sysprefs.sql file into this table.
- note the number of rows in the systempreferences table.
- Create a dump of the system preferences, e.g.,
  mysql> \T sysprefs-1
  mysql> SELECT * FROM systempreferences ORDER BY variable;
  mysql> exit
- apply this patch.
- delete all rows of the systempreferences table.
- insert the new sysprefs.sql file.
- verify the number of rows is the same as the previous.
- Create a new dump of the system preferences, e.g.,
  mysql> \T sysprefs-2
  mysql> SELECT * FROM systempreferences ORDER BY variable;
  mysql> exit
- Verify that the two dumps (sysprefs-1 and sysprefs-2) are
  identical.

Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
installer/data/mysql/sysprefs.sql