The install file does not work with table prefixes

hitka - June 8, 2006 - 15:35
Project:shazamgallery
Version:HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

The shazamgallery.install file does not use curly braces when creating the database tables, which means that db_query does not prefix the table names with the prefix even if it should. The module itself uses the prefixes correctly, so you only need to change two lines in shazamgallery.install:

db_query("CREATE TABLE IF NOT EXISTS `{shazamgallery}` (
and
db_query("CREATE TABLE IF NOT EXISTS `{relations}` (

Sorry for not appending a real patch file, but I hope this is good enough.

#1

Bèr Kessels - September 15, 2006 - 14:12

Fixed in HEAD and 4.7

#2

Bèr Kessels - September 15, 2006 - 14:13
Status:needs review» fixed

#3

Anonymous - September 29, 2006 - 14:15
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.