install file broken for Tables with prefix

jmountz - July 6, 2007 - 03:34
Project:Path Access
Version:5.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

The README.txt mentions a SQL script that needs to be run to complete installation. I am fairly new at this and have two problems; 1 - I do not see a SQL script, 2 - I do not know how to go about running the script within Drupal. As things stand right now, the module is not working as is. Any clarification or assistant with this will be greatly appreciated!

#1

budda - August 27, 2007 - 14:18
Status:active» fixed

Documentation corrected.
Since Drupal 5 there is no longer any manual SQL scripts to run, thanks to the automated .install files.

#2

Anonymous - September 10, 2007 - 14:21
Status:fixed» closed

#3

lebisol - February 28, 2008 - 01:03
Status:closed» active

Hello Budda,
Sorry to reopen this but I ran accross strange issue on edit of user roles. Install went fine but it seems as if sql did not fire quite right and tables were not created.
Here is the error:
=============
user warning: Table 'db.PREFpath_access' doesn't exist query: SELECT * FROM PREFpath_access pa INNER JOIN PREFrole r ON pa.rid = r.rid WHERE pa.rid = 1 in /path_here/includes/database.mysql.inc on line 172.
user warning: Table 'db.PREFpath_access' doesn't exist query: INSERT INTO PREFpath_access (pid, rid, pages, visibility) VALUES (8, 1, '', '') in /path_here/includes/database.mysql.inc on line 172.
=============
Is there a way to manually excute sql after the fact?
Many thanks!

#4

suydam - May 7, 2008 - 22:44

If you're using a table prefix, the .install file is screwd up.
It says: CREATE TABLE `path_access`
It should say: CREATE TABLE {path_access}

Uninstall the module.
Remove the entry from the system table.
Install the module.
Rejoice.
:)

#5

suit4 - August 13, 2008 - 12:24
Title:SQL Script» install file broken for Tables with prefix
Component:Miscellaneous» Code
Status:active» needs review

Patch created, ready for testing.

AttachmentSize
path_access_install0.patch 485 bytes

#6

budda - August 15, 2008 - 22:47
Status:needs review» fixed

The dev release was already fixed in CVS months ago. Release 1.2 just created which includes the correct .install file.

#7

Anonymous (not verified) - August 29, 2008 - 22:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.