You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by mj...@apache.org on 2017/10/27 17:55:58 UTC

[1/2] incubator-guacamole-client git commit: GUACAMOLE-363: Fix issues with schema initialization scripts.

Repository: incubator-guacamole-client
Updated Branches:
  refs/heads/staging/0.9.14-incubating 0d74dc582 -> bfb6b13ba


GUACAMOLE-363: Fix issues with schema initialization scripts.


Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/12daab2c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/12daab2c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/12daab2c

Branch: refs/heads/staging/0.9.14-incubating
Commit: 12daab2c343584b717dae9ebe1198c0a11aafe21
Parents: 56bce8d
Author: Nick Couchman <vn...@apache.org>
Authored: Tue Oct 24 10:04:12 2017 -0400
Committer: Nick Couchman <vn...@apache.org>
Committed: Tue Oct 24 10:04:12 2017 -0400

----------------------------------------------------------------------
 .../schema/001-create-schema.sql                | 39 ++++++++++----------
 .../schema/002-create-admin-user.sql            |  2 +-
 2 files changed, 21 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/12daab2c/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-sqlserver/schema/001-create-schema.sql
----------------------------------------------------------------------
diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-sqlserver/schema/001-create-schema.sql b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-sqlserver/schema/001-create-schema.sql
index c64f6f9..f7a34b1 100644
--- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-sqlserver/schema/001-create-schema.sql
+++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-sqlserver/schema/001-create-schema.sql
@@ -21,12 +21,13 @@
  * Turn on ANSI_NULLS for the entire DB to make it ISO-compliant.
  */
 ALTER DATABASE CURRENT SET ANSI_NULLS ON;
-GO;
+GO
 
 /**
  * Turn on QUOTED_IDENTIFIER for the entire DB.
  */
 ALTER DATABASE CURRENT SET QUOTED_IDENTIFIER ON;
+GO
 
 /**
  * List for permission data type.
@@ -34,7 +35,7 @@ ALTER DATABASE CURRENT SET QUOTED_IDENTIFIER ON;
 CREATE RULE [guacamole_permission_list] 
     AS
     @list IN ('READ','UPDATE','DELETE','ADMINISTER');
-GO;
+GO
 
 /**
  * List for system permission data type.
@@ -46,7 +47,7 @@ CREATE RULE [guacamole_system_permission_list]
               'CREATE_SHARING_PROFILE',
               'CREATE_USER',
               'ADMINISTER');
-GO;
+GO
 
 /**
  * The permission data type.
@@ -59,7 +60,7 @@ EXEC sp_bindrule 'guacamole_permission_list','guacamole_permission';
  */
 CREATE TYPE [guacamole_system_permission] FROM [nvarchar](32) NOT NULL;
 EXEC sp_bindrule 'guacamole_system_permission_list','guacamole_system_permission';
-GO;
+GO
 
 /**
  * The connection_group table stores organizational and balancing groups.
@@ -98,7 +99,7 @@ ALTER TABLE [guacamole_connection_group]
     ADD CONSTRAINT [DF_guacamole_connection_group_type] DEFAULT (N'ORGANIZATIONAL') FOR [type];
 ALTER TABLE [guacamole_connection_group]
     ADD CONSTRAINT [DF_guacamole_connection_group_enable_session_affinity] DEFAULT ((0)) FOR [enable_session_affinity];
-GO;
+GO
 
 /**
  * The connection table, for storing connections and attributes.
@@ -132,7 +133,7 @@ ALTER TABLE [guacamole_connection]
     CHECK CONSTRAINT [CK_proxy_encryption_method];
 ALTER TABLE [guacamole_connection]
     ADD CONSTRAINT [DF_guacamole_connection_failover_only] DEFAULT ((0)) FOR [failover_only];
-GO;
+GO
 
 /**
  * The user table stores user accounts, passwords, and properties.
@@ -166,7 +167,7 @@ ALTER TABLE [guacamole_user]
     ADD CONSTRAINT [DF_guacamole_user_disabled] DEFAULT ((0)) FOR [disabled];
 ALTER TABLE [guacamole_user]
     ADD CONSTRAINT [DF_guacamole_user_expired] DEFAULT ((0)) FOR [expired];
-GO;
+GO
 
 /**
  * The sharing_profile table stores profiles that allow
@@ -191,7 +192,7 @@ ALTER TABLE [guacamole_sharing_profile]
         ON DELETE CASCADE;
 ALTER TABLE [guacamole_sharing_profile]
     CHECK CONSTRAINT [FK_guacamole_sharing_profile_connection];
-GO;
+GO
 
 /**
  * The connection_parameter table stores parameters for
@@ -204,7 +205,7 @@ CREATE TABLE [guacamole_connection_parameter](
 
     CONSTRAINT [PK_guacamole_connection_parameter] PRIMARY KEY CLUSTERED 
         ([connection_id] ASC, [parameter_name] ASC) ON [PRIMARY]
-) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY];
+) ON [PRIMARY];
 
 /**
  * Foreign keys for the connection_parameter table.
@@ -216,7 +217,7 @@ ALTER TABLE [guacamole_connection_parameter]
         ON DELETE CASCADE;
 ALTER TABLE [guacamole_connection_parameter]
     CHECK CONSTRAINT [FK_guacamole_connection_parameter_connection];
-GO;
+GO
 
 /**
  * The sharing_profile_parameter table stores parameters
@@ -229,7 +230,7 @@ CREATE TABLE [guacamole_sharing_profile_parameter](
 
     CONSTRAINT [PK_guacamole_sharing_profile_parameter] PRIMARY KEY CLUSTERED 
         ([sharing_profile_id] ASC, [parameter_name] ASC) ON [PRIMARY]
-) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY];
+) ON [PRIMARY];
 
 /**
  * Foreign keys for the sharing_profile_parameter
@@ -242,7 +243,7 @@ ALTER TABLE [guacamole_sharing_profile_parameter]
         ON DELETE CASCADE;
 ALTER TABLE [guacamole_sharing_profile_parameter]
     CHECK CONSTRAINT [FK_guacamole_sharing_profile_parameter_sharing_profile];
-GO;
+GO
 
 /**
  * The connection_permission table stores permission
@@ -274,7 +275,7 @@ ALTER TABLE [guacamole_connection_permission]
         ON DELETE CASCADE;
 ALTER TABLE [guacamole_connection_permission]
     CHECK CONSTRAINT [FK_guacamole_connection_permission_user1];
-GO;
+GO
 
 /**
  * The connection_group_permission table stores permission mappings for
@@ -306,7 +307,7 @@ ALTER TABLE [guacamole_connection_group_permission]
         ON DELETE CASCADE;
 ALTER TABLE [guacamole_connection_group_permission]
     CHECK CONSTRAINT [FK_guacamole_connection_group_permission_user];
-GO;
+GO
 
 /**
  * The sharing_profile_permission table stores permission
@@ -338,7 +339,7 @@ ALTER TABLE [guacamole_sharing_profile_permission]
         ON DELETE CASCADE;
 ALTER TABLE [guacamole_sharing_profile_permission]
     CHECK CONSTRAINT [FK_guacamole_sharing_profile_permission_user];
-GO;
+GO
 
 /**
  * The system_permission table stores permission mappings
@@ -362,7 +363,7 @@ ALTER TABLE [guacamole_system_permission]
         ON DELETE CASCADE;
 ALTER TABLE [guacamole_system_permission]
     CHECK CONSTRAINT [FK_guacamole_system_permission_user];
-GO;
+GO
 
 /**
  * The user_permission table stores permission mappings
@@ -392,7 +393,7 @@ ALTER TABLE [guacamole_user_permission]
     REFERENCES [guacamole_user] ([user_id]);
 ALTER TABLE [guacamole_user_permission]
     CHECK CONSTRAINT [FK_guacamole_user_permission_user1];
-GO;
+GO
 
 /**
  * The connection_history table stores records for historical
@@ -436,7 +437,7 @@ ALTER TABLE [guacamole_connection_history]
         ON DELETE SET NULL;
 ALTER TABLE [guacamole_connection_history]
     CHECK CONSTRAINT [FK_guacamole_connection_history_user];
-GO;
+GO
 
 /**
  * The user_password_history table stores password history
@@ -464,4 +465,4 @@ ALTER TABLE [guacamole_user_password_history]
         ON DELETE CASCADE;
 ALTER TABLE [guacamole_user_password_history]
     CHECK CONSTRAINT [FK_guacamole_user_password_history_user];
-GO;
+GO

http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/12daab2c/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-sqlserver/schema/002-create-admin-user.sql
----------------------------------------------------------------------
diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-sqlserver/schema/002-create-admin-user.sql b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-sqlserver/schema/002-create-admin-user.sql
index 15944a2..4898e57 100644
--- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-sqlserver/schema/002-create-admin-user.sql
+++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-sqlserver/schema/002-create-admin-user.sql
@@ -46,4 +46,4 @@ FROM (
         UNION SELECT 'guacadmin' AS username, 'ADMINISTER' AS permission)
     permissions
     JOIN [guacamole_user] ON permissions.username = [guacamole_user].[username];
-GO;
+GO


[2/2] incubator-guacamole-client git commit: GUACAMOLE-363: Merge correction to SQL Server syntax.

Posted by mj...@apache.org.
GUACAMOLE-363: Merge correction to SQL Server syntax.


Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/bfb6b13b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/bfb6b13b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/bfb6b13b

Branch: refs/heads/staging/0.9.14-incubating
Commit: bfb6b13ba76f095f5460d2ad1580297f033866f3
Parents: 0d74dc5 12daab2
Author: Michael Jumper <mj...@apache.org>
Authored: Fri Oct 27 10:55:13 2017 -0700
Committer: Michael Jumper <mj...@apache.org>
Committed: Fri Oct 27 10:55:13 2017 -0700

----------------------------------------------------------------------
 .../schema/001-create-schema.sql                | 39 ++++++++++----------
 .../schema/002-create-admin-user.sql            |  2 +-
 2 files changed, 21 insertions(+), 20 deletions(-)
----------------------------------------------------------------------