Bug 23168: Enable plugins using plain SQL
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 20 Jun 2019 15:03:30 +0000 (12:03 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 20 Jun 2019 15:40:50 +0000 (16:40 +0100)
commit5be6c78e6e78bfa34877e5732b61c2f881245edd
tree3671ba1382dd0a33c608c88cdfd20226c819f6ed
parentc67ce9cc9b492e2eaaaaf951a555e59d3cba69fd
Bug 23168: Enable plugins using plain SQL

To test:
- On a clean 18.11.x, install a plugin [1]
- Run:
  $ sudo koha-mysql kohadev
  > SELECT * FROM plugin_data;
=> SUCCESS: Notice there's a __INSTALLED_VERSION__ line for your plugin
- Checkout latest master, restart all the things
- Run:
  $ updatedatabase
=> FAIL: It fails on 18.12.00.069 because the plugin_methods table doesn't exist
- Run:
  $ sudo koha-mysql kohadev
  > SELECT * FROM plugin_data;
=> FAIL: No __ENABLED__ line for your plugin
- Apply the patch
- Run:
  $ updatedatabase
=> SUCCESS: Update passes the 18.12.00.069 step correctly
- Run:
  $ sudo koha-mysql kohadev
  > SELECT * FROM plugin_data;
=> SUCCESS: There's an __ENABLED__ line for your plugin
- Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
installer/data/mysql/updatedatabase.pl