Skip to content

Commit c83c5db

Browse files
author
Louis BAYLE
committed
cosmetic
1 parent a4bac73 commit c83c5db

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/docker_exec_sql_mantis.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@
33
# execute an SQL request from your PC to the mariadb container
44
#
55
# usage:
6-
# docker_exec_sql_mantis.sh "SELECT * FROM codev_timetracking_table WHERE date < UNIX_TIMESTAMP('2019-10-01')"
6+
# docker_exec_sql_mantis.sh "SELECT * FROM mantis_user_table WHERE username='l-bayle'"
77

88

99
SQL_QUERRY=$1
10+
1011
#SQL_QUERRY="SELECT * FROM mantis_user_pref_table where user_id=(select id from mantis_user_table where username='l-bayle')"
1112
#SQL_QUERRY="SELECT * FROM codev_timetracking_table WHERE date < UNIX_TIMESTAMP('2019-10-01')"
1213

14+
# grant Admin access for user 'l-bayle'
15+
#UPDATE mantis_user_table SET access_level = 90 WHERE username = 'l-bayle'
16+
#INSERT INTO codev_team_user_table (user_id, team_id, access_level, arrival_date, departure_date) VALUES ((SELECT id FROM mantis_user_table WHERE username = 'l-bayle'), '1', '10', 0, 0)
17+
1318
# SSH connection to the docker server
1419
SSH_HOST="my_docker_server_IP"
1520
SSH_USER="user"

0 commit comments

Comments
 (0)