Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

decided to add more columns showing when a remote server registration…

… was updated
  • Loading branch information...
commit a49affe2ab88399ca4b48e67dd44005676dba157 1 parent fe51e18
@ryanguill authored
Showing with 68 additions and 2 deletions.
  1. +5 −0 com/guill/dao/installDao.cfc
  2. +63 −2 com/guill/dao/upgradeDao.cfc
View
5 com/guill/dao/installDao.cfc
@@ -525,6 +525,11 @@ Copyright 2012 Ryan Guill
--added for version 1.1
, minimumCertificationID char(35) NOT NULL
, minimumCertificationName varchar(25) NOT NULL
+ , updatedByUserID char(35) NOT NULL
+ , updatedByUserName varchar(100) NOT NULL
+ , updatedByUserFullname varchar(100) NOT NULL
+ , updatedByUserEmail varchar(255) NOT NULL
+ , updatedOn timestamp NOT NULL
, PRIMARY KEY (serverID)
View
65 com/guill/dao/upgradeDao.cfc
@@ -88,18 +88,79 @@
<cfquery name="local.qAlterRemoteServers" datasource="#arguments.dsn#">
ALTER TABLE remoteServers
ADD COLUMN
- minimumCertificationID char(35) NOT NULL DEFAULT ''
+ minimumCertificationID char(35) NOT NULL DEFAULT ''
</cfquery>
<cfcatch>
<cfthrow message="Query failed. Message: #cfcatch.Message# Detail: #cfcatch.Detail#" />
<cfrethrow />
</cfcatch>
</cftry>
+
+ <cftry>
+ <cfquery name="local.qAlterRemoteServers" datasource="#arguments.dsn#">
+ ALTER TABLE remoteServers
+ ADD COLUMN
+ minimumCertificationName varchar(25) NOT NULL DEFAULT ''
+ </cfquery>
+ <cfcatch>
+ <cfthrow message="Query failed. Message: #cfcatch.Message# Detail: #cfcatch.Detail#" />
+ <cfrethrow />
+ </cfcatch>
+ </cftry>
+
+ <cftry>
+ <cfquery name="local.qAlterRemoteServers" datasource="#arguments.dsn#">
+ ALTER TABLE remoteServers
+ ADD COLUMN
+ updatedByUserID char(35) NOT NULL DEFAULT ''
+ </cfquery>
+ <cfcatch>
+ <cfthrow message="Query failed. Message: #cfcatch.Message# Detail: #cfcatch.Detail#" />
+ <cfrethrow />
+ </cfcatch>
+ </cftry>
+
+ <cftry>
+ <cfquery name="local.qAlterRemoteServers" datasource="#arguments.dsn#">
+ ALTER TABLE remoteServers
+ ADD COLUMN
+ updatedByUserName varchar(100) NOT NULL DEFAULT ''
+ </cfquery>
+ <cfcatch>
+ <cfthrow message="Query failed. Message: #cfcatch.Message# Detail: #cfcatch.Detail#" />
+ <cfrethrow />
+ </cfcatch>
+ </cftry>
+
+ <cftry>
+ <cfquery name="local.qAlterRemoteServers" datasource="#arguments.dsn#">
+ ALTER TABLE remoteServers
+ ADD COLUMN
+ updatedByUserFullname varchar(100) NOT NULL DEFAULT ''
+ </cfquery>
+ <cfcatch>
+ <cfthrow message="Query failed. Message: #cfcatch.Message# Detail: #cfcatch.Detail#" />
+ <cfrethrow />
+ </cfcatch>
+ </cftry>
+
+ <cftry>
+ <cfquery name="local.qAlterRemoteServers" datasource="#arguments.dsn#">
+ ALTER TABLE remoteServers
+ ADD COLUMN
+ updatedByUserEmail varchar(255) NOT NULL DEFAULT ''
+ </cfquery>
+ <cfcatch>
+ <cfthrow message="Query failed. Message: #cfcatch.Message# Detail: #cfcatch.Detail#" />
+ <cfrethrow />
+ </cfcatch>
+ </cftry>
+
<cftry>
<cfquery name="local.qAlterRemoteServers" datasource="#arguments.dsn#">
ALTER TABLE remoteServers
ADD COLUMN
- minimumCertificationName varchar(25) NOT NULL DEFAULT ''
+ updatedOn timestamp NOT NULL DEFAULT ''
</cfquery>
<cfcatch>
<cfthrow message="Query failed. Message: #cfcatch.Message# Detail: #cfcatch.Detail#" />
Please sign in to comment.
Something went wrong with that request. Please try again.