Create extensions directory.
[plcapi.git] / extensions / README.txt
1 Create a database extension by creating a tree like follows:
2
3 - /usr/share/plc_api/extensions/<name>-up*
4 Contains the SQL or script that sets up the extension's database needs.
5
6 - /usr/share/plc_api/extensions/<name>-down*
7 Contains the SQL or script that removes the extension from the database.
8
9 - /usr/share/plc_api/extensions/<name>/migrations/[0-9][0-9][0-9]-{up,down}-*
10 Migration scripts for the extension. One of the scripts for each version
11 has to execute
12 UPDATE plc_db_extensions SET version = <version> WHERE name = '<name>'