Procházet zdrojové kódy

Add sql query and update command (#257)

* Update command.rst

* Create sql_query.rst

* Add files via upload

* Update sql_query.rst

* Delete source/_static/images/advanced/fusionpbx_sql_query.jpg

* Add files via upload

* Delete source/_static/images/advanced/fusionpbx_sql_query.jpg

* Add files via upload

* Delete source/_static/images/advanced/fusionpbx_sql_query.jpg

* Add files via upload
Alex před 9 měsíci
rodič
revize
508d35392a

binární
source/_static/images/advanced/fusionpbx_sql_query.jpg


+ 22 - 1
source/advanced/command.rst

@@ -4,10 +4,31 @@ Command
 
 Provides a conventient way to execute system, PHP, switch and SQL commands. 
 
-
 .. image:: ../_static/images/fusionpbx_command.jpg
         :scale: 85%
 
 
 
 *  Click the **drop down box** on the right to choose from **Switch**, **PHP**, Shell and SQL to execute commands.
+
+
+Install
+--------
+
+::
+
+ cd /var/www/fusionpbx/app
+ git clone https://github.com/fusionpbx/fusionpbx-app-command.git command
+ chown -R www-data:www-data /var/www/fusionpbx/app/command
+
+- Run Advanced > Upgrade > Menu Defaults
+- Run Advanced > Upgrade > Permission Defaults
+- Log out and then Log back in
+
+Upgrade
+--------
+
+::
+
+- cd /var/www/fusionpbx/app/command
+- git pull

+ 31 - 0
source/advanced/sql_query.rst

@@ -0,0 +1,31 @@
+##########
+SQL Query
+##########
+
+The SQL Query tool is an optional feature that can run SQL commands, show the contents of the database, and set the type to view results in the browser CSV, or SQL.
+
+.. image:: ../_static/images/advanced/fusionpbx_sql_query.jpg
+        :scale: 85%
+
+
+Install
+--------
+
+::
+
+ cd /var/www/fusionpbx/app
+ git clone https://github.com/fusionpbx/fusionpbx-app-sql_query.git sql_query
+ chown -R www-data:www-data /var/www/fusionpbx/app/sql_query
+ php /var/www/fusionpbx/core/upgrade/upgrade.php
+
+- Run Advanced > Upgrade > Menu Defaults
+- Run Advanced > Upgrade > Permission Defaults
+- Log out and then Log back in
+
+Upgrade
+--------
+
+::
+
+ cd /var/www/fusionpbx/app/sql_query
+ git pull