 	photogalleryid int NOT NULL,
 	filename varchar(255) NOT NULL,
 	description varchar(255) NOT NULL,
-	filedata #loc.binaryColumnType# NULL,
-	PRIMARY KEY(photogalleryphotoid)
+	filedata #loc.binaryColumnType# NULL
+	<cfif loc.identityColumnType Does Not Contain "PRIMARY KEY">,PRIMARY KEY(photogalleryphotoid)</cfif>
 ) #loc.storageEngine#
 </cfquery>
 

(
	id #loc.identityColumnType#,
	name varchar(50) NOT NULL,
	description varchar(50) NULL,
	PRIMARY KEY(id)
) #loc.storageEngine#
</cfquery>


	name varchar(100) NOT NULL,
	url varchar(100) NULL,
	email varchar(100) NULL,
	createdat #loc.datetimeColumnType# NOT NULL
	<cfif loc.identityColumnType Does Not Contain "PRIMARY KEY">,PRIMARY KEY(id)</cfif>
) #loc.storageEngine#
</cfquery>

