mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	GUACAMOLE-317: Add "failover_only" column to database schema for Guacamole connections.
This commit is contained in:
		| @@ -38,6 +38,7 @@ | ||||
|         <result column="proxy_encryption_method"  property="proxyEncryptionMethod" jdbcType="VARCHAR" | ||||
|                 javaType="org.apache.guacamole.net.auth.GuacamoleProxyConfiguration$EncryptionMethod"/> | ||||
|         <result column="connection_weight"        property="connectionWeight"      jdbcType="INTEGER"/> | ||||
|         <result column="failover_only"            property="failoverOnly"          jdbcType="BOOLEAN"/> | ||||
|  | ||||
|         <!-- Associated sharing profiles --> | ||||
|         <collection property="sharingProfileIdentifiers" resultSet="sharingProfiles" ofType="java.lang.String" | ||||
| @@ -97,7 +98,8 @@ | ||||
|             proxy_hostname, | ||||
|             proxy_port, | ||||
|             proxy_encryption_method, | ||||
|             connection_weight | ||||
|             connection_weight, | ||||
|             failover_only | ||||
|         FROM guacamole_connection | ||||
|         WHERE connection_id IN | ||||
|             <foreach collection="identifiers" item="identifier" | ||||
| @@ -129,7 +131,8 @@ | ||||
|             proxy_hostname, | ||||
|             proxy_port, | ||||
|             proxy_encryption_method, | ||||
|             connection_weight | ||||
|             connection_weight, | ||||
|             failover_only | ||||
|         FROM guacamole_connection | ||||
|         JOIN guacamole_connection_permission ON guacamole_connection_permission.connection_id = guacamole_connection.connection_id | ||||
|         WHERE guacamole_connection.connection_id IN | ||||
| @@ -166,7 +169,8 @@ | ||||
|             proxy_hostname, | ||||
|             proxy_port, | ||||
|             proxy_encryption_method, | ||||
|             connection_weight | ||||
|             connection_weight, | ||||
|             failover_only | ||||
|         FROM guacamole_connection | ||||
|         WHERE  | ||||
|             <if test="parentIdentifier != null">parent_id = #{parentIdentifier,jdbcType=VARCHAR}</if> | ||||
| @@ -194,7 +198,8 @@ | ||||
|             proxy_hostname, | ||||
|             proxy_port, | ||||
|             proxy_encryption_method, | ||||
|             connection_weight | ||||
|             connection_weight, | ||||
|             failover_only | ||||
|         ) | ||||
|         VALUES ( | ||||
|             #{object.name,jdbcType=VARCHAR}, | ||||
| @@ -205,7 +210,8 @@ | ||||
|             #{object.proxyHostname,jdbcType=VARCHAR}, | ||||
|             #{object.proxyPort,jdbcType=INTEGER}, | ||||
|             #{object.proxyEncryptionMethod,jdbcType=VARCHAR}, | ||||
|             #{object.connectionWeight,jdbcType=INTEGER} | ||||
|             #{object.connectionWeight,jdbcType=INTEGER}, | ||||
|             #{object.failoverOnly,jdbcType=BOOLEAN} | ||||
|         ) | ||||
|  | ||||
|     </insert> | ||||
| @@ -222,6 +228,7 @@ | ||||
|             proxy_port               = #{object.proxyPort,jdbcType=INTEGER}, | ||||
|             proxy_encryption_method  = #{object.proxyEncryptionMethod,jdbcType=VARCHAR}, | ||||
|             connection_weight        = #{object.connectionWeight,jdbcType=INTEGER} | ||||
|             failover_only            = #{object.failoverOnly,jdbcType=BOOLEAN} | ||||
|         WHERE connection_id = #{object.objectID,jdbcType=INTEGER} | ||||
|     </update> | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user