Skip to content
This repository
Browse code

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

… was updated
  • Loading branch information...
commit a49affe2ab88399ca4b48e67dd44005676dba157 1 parent fe51e18
Ryan Guill authored
5 com/guill/dao/installDao.cfc
@@ -525,6 +525,11 @@ Copyright 2012 Ryan Guill
525 525 --added for version 1.1
526 526 , minimumCertificationID char(35) NOT NULL
527 527 , minimumCertificationName varchar(25) NOT NULL
  528 + , updatedByUserID char(35) NOT NULL
  529 + , updatedByUserName varchar(100) NOT NULL
  530 + , updatedByUserFullname varchar(100) NOT NULL
  531 + , updatedByUserEmail varchar(255) NOT NULL
  532 + , updatedOn timestamp NOT NULL
528 533
529 534
530 535 , PRIMARY KEY (serverID)
65 com/guill/dao/upgradeDao.cfc
@@ -88,18 +88,79 @@
88 88 <cfquery name="local.qAlterRemoteServers" datasource="#arguments.dsn#">
89 89 ALTER TABLE remoteServers
90 90 ADD COLUMN
91   - minimumCertificationID char(35) NOT NULL DEFAULT ''
  91 + minimumCertificationID char(35) NOT NULL DEFAULT ''
92 92 </cfquery>
93 93 <cfcatch>
94 94 <cfthrow message="Query failed. Message: #cfcatch.Message# Detail: #cfcatch.Detail#" />
95 95 <cfrethrow />
96 96 </cfcatch>
97 97 </cftry>
  98 +
  99 + <cftry>
  100 + <cfquery name="local.qAlterRemoteServers" datasource="#arguments.dsn#">
  101 + ALTER TABLE remoteServers
  102 + ADD COLUMN
  103 + minimumCertificationName varchar(25) NOT NULL DEFAULT ''
  104 + </cfquery>
  105 + <cfcatch>
  106 + <cfthrow message="Query failed. Message: #cfcatch.Message# Detail: #cfcatch.Detail#" />
  107 + <cfrethrow />
  108 + </cfcatch>
  109 + </cftry>
  110 +
  111 + <cftry>
  112 + <cfquery name="local.qAlterRemoteServers" datasource="#arguments.dsn#">
  113 + ALTER TABLE remoteServers
  114 + ADD COLUMN
  115 + updatedByUserID char(35) NOT NULL DEFAULT ''
  116 + </cfquery>
  117 + <cfcatch>
  118 + <cfthrow message="Query failed. Message: #cfcatch.Message# Detail: #cfcatch.Detail#" />
  119 + <cfrethrow />
  120 + </cfcatch>
  121 + </cftry>
  122 +
  123 + <cftry>
  124 + <cfquery name="local.qAlterRemoteServers" datasource="#arguments.dsn#">
  125 + ALTER TABLE remoteServers
  126 + ADD COLUMN
  127 + updatedByUserName varchar(100) NOT NULL DEFAULT ''
  128 + </cfquery>
  129 + <cfcatch>
  130 + <cfthrow message="Query failed. Message: #cfcatch.Message# Detail: #cfcatch.Detail#" />
  131 + <cfrethrow />
  132 + </cfcatch>
  133 + </cftry>
  134 +
  135 + <cftry>
  136 + <cfquery name="local.qAlterRemoteServers" datasource="#arguments.dsn#">
  137 + ALTER TABLE remoteServers
  138 + ADD COLUMN
  139 + updatedByUserFullname varchar(100) NOT NULL DEFAULT ''
  140 + </cfquery>
  141 + <cfcatch>
  142 + <cfthrow message="Query failed. Message: #cfcatch.Message# Detail: #cfcatch.Detail#" />
  143 + <cfrethrow />
  144 + </cfcatch>
  145 + </cftry>
  146 +
  147 + <cftry>
  148 + <cfquery name="local.qAlterRemoteServers" datasource="#arguments.dsn#">
  149 + ALTER TABLE remoteServers
  150 + ADD COLUMN
  151 + updatedByUserEmail varchar(255) NOT NULL DEFAULT ''
  152 + </cfquery>
  153 + <cfcatch>
  154 + <cfthrow message="Query failed. Message: #cfcatch.Message# Detail: #cfcatch.Detail#" />
  155 + <cfrethrow />
  156 + </cfcatch>
  157 + </cftry>
  158 +
98 159 <cftry>
99 160 <cfquery name="local.qAlterRemoteServers" datasource="#arguments.dsn#">
100 161 ALTER TABLE remoteServers
101 162 ADD COLUMN
102   - minimumCertificationName varchar(25) NOT NULL DEFAULT ''
  163 + updatedOn timestamp NOT NULL DEFAULT ''
103 164 </cfquery>
104 165 <cfcatch>
105 166 <cfthrow message="Query failed. Message: #cfcatch.Message# Detail: #cfcatch.Detail#" />

0 comments on commit a49affe

Please sign in to comment.
Something went wrong with that request. Please try again.