Update of /cvsroot/mydatabasepilot/MyDatabasePilot/Query
In directory sc8-pr-cvs1:/tmp/cvs-serv27768/Query
Modified Files:
alterTable.cfm
Log Message:
Functionality Added:
[ 758146 ] Added "ADD UNIQUE" AlterSpec
Index: alterTable.cfm
===================================================================
RCS file: /cvsroot/mydatabasepilot/MyDatabasePilot/Query/alterTable.cfm,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** alterTable.cfm 20 Jun 2003 15:17:51 -0000 1.18
--- alterTable.cfm 20 Jun 2003 20:21:24 -0000 1.19
***************
*** 257,261 ****
<cfcase value="ADD PRIMARY KEY"></cfcase>
<!--- "ADD UNIQUE" Alter Specification --->
! <cfcase value="ADD UNIQUE"></cfcase>
<!--- "ADD FULLTEXT" Alter Specification --->
<cfcase value="ADD FULLTEXT"></cfcase>
--- 257,300 ----
<cfcase value="ADD PRIMARY KEY"></cfcase>
<!--- "ADD UNIQUE" Alter Specification --->
! <cfcase value="ADD UNIQUE">
! <cfscript>
! // Add "ADD UNIQUE" Keywords to Output Strings
! rawSQL = "#rawSQL# ADD UNIQUE";
! htmlSQL = "#htmlSQL#<br /><span class=""KeyWord"">ADD UNIQUE</span>";
!
! // ToDo [index_name]
!
! //-----------------------------------------
! // Add Index Column Names to Output Strings
! //-----------------------------------------
!
! // Add Opening Bracked to Output Strings
! rawSQL = "#rawSQL# (";
! htmlSQL = "#htmlSQL# (";
!
! // Add Index Column Names to Output Strings
! for(j=1; j EQ arrayLen(ATTRIBUTES.alterSpec[i].index_col_names); j=j+1){
! // If this is a multi column index and is not the first Index Column Name, then add a comma to the last Index Column Name
! if(j GT 1){
! rawSQL = "#rawSQL#,";
! htmlSQL = "#htmlSQL#,";
! }
!
! // Add Index Column Name to Output Strings
! if(ATTRIBUTES.alterSpec[i].index_col_names[j] IS ""){
! rawSQL = "#rawSQL#NameNotSpecified";
! htmlSQL = "#htmlSQL#<span class=""Missing"">NameNotSpecified</span>";
! }
! else{
! rawSQL = "#rawSQL##ATTRIBUTES.alterSpec[i].index_col_names[j]#";
! htmlSQL = "#htmlSQL#<span class=""String"">#ATTRIBUTES.alterSpec[i].index_col_names[j]#</span>";
! }
! }
!
! // Add Closing Bracked to Output Strings
! rawSQL = "#rawSQL#)";
! htmlSQL = "#htmlSQL#)";
! </cfscript>
! </cfcase>
<!--- "ADD FULLTEXT" Alter Specification --->
<cfcase value="ADD FULLTEXT"></cfcase>
|