 	photogalleryid #loc.identityColumnType#,
 	userid int NOT NULL,
 	title varchar(255) NOT NULL,
-	description text NOT NULL
-	<cfif loc.identityColumnType Does Not Contain "PRIMARY KEY">,PRIMARY KEY(photogalleryid)</cfif>
+	description text NOT NULL,
+	PRIMARY KEY(photogalleryid #loc.identityKeyWord#)
 ) #loc.storageEngine#
 </cfquery>
 

(
	id #loc.identityColumnType#,
	postid int NOT NULL,
	tagid int NOT NULL
	<cfif loc.identityColumnType Does Not Contain "PRIMARY KEY">,PRIMARY KEY(id)</cfif>
) #loc.storageEngine#
</cfquery>


	photogalleryid int NOT NULL,
	filename varchar(255) NOT NULL,
	description varchar(255) NOT NULL,
	filedata #loc.binaryColumnType# NULL,
	PRIMARY KEY(photogalleryphotoid #loc.identityKeyWord#)
) #loc.storageEngine#
</cfquery>

