View Single Post
  #9  
Old 01-25-2012, 05:29 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Additional fields for address book

Quote:
Originally Posted by carlisleglass
This is the contents of 'PATCH.sql.txt'
Code:
ALTER TABLE xcart_register_field_values ADD `addressid` INT(11) NOT NULL DEFAULT '0'; ALTER TABLE xcart_register_field_values DROP PRIMARY KEY; ALTER TABLE xcart_register_field_values ADD PRIMARY KEY (`fieldid`, `userid`, `addressid`);

Yes, these are the SQL queries that are required.

The addressid field is already in the address book table, it is called "id" there.

It seems I was wrong when I said your query is required.
I missed the table name in your query. Sorry.

So, all the required SQL can be found in my first post.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote