You're welcome, it's nice to have some quality assurance :-)
The "after" is required if you want to add the columns in the exact same
order. The application does not require this, but you may have some logic
doing so. I would recommend to keep the structure as close as possible to the
"absolut" one of "addressbook.sql".
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have tried to add someone to my php-addressbook 7.00 466 (it worked fine in
6.12) and the person wasn't added
I tried to modify someone and again, the modification wasn't accepted
I had no error message
any ideas why does it happen?
thanks
P.S.
I looked into the tables with phpadmin and the changes were'nt there
Hi Yossin,
Did you apply the upgrade scripts, especially 6.2 to 6.3?
Regards
Olivier
I have applied the script in 7.0 version, 6.3 never rolled out as "version"
how do I know what to do with the database?
Could you send an Export or screenshot of your "addressbook" table?
-- phpMyAdmin SQL Dump
-- version 3.4.9
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 19, 2012 at 12:40 AM
-- Server version: 5.0.95
-- PHP Version: 5.2.9
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT /;
/!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS /;
/!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION /;
/!40101 SET NAMES utf8 /;
--
-- Database:
yossin_mnl07--
--
-- Table structure for table
addr_addressbook--
CREATE TABLE IF NOT EXISTS
addr_addressbook(domain_idint(9) unsigned NOT NULL default '0',idint(9) unsigned NOT NULL auto_increment,firstnamevarchar(255) NOT NULL default '',lastnamevarchar(255) NOT NULL default '',nicknamevarchar(255) default NULL,companyvarchar(255) NOT NULL default '',addresstext NOT NULL,addr_longtext,addr_lattext,addr_statustext,hometext NOT NULL,mobiletext NOT NULL,worktext NOT NULL,faxtext NOT NULL,emailtext NOT NULL,email2text NOT NULL,email3text NOT NULL,imtext NOT NULL,im2text NOT NULL,im3text NOT NULL,homepagetext NOT NULL,bdaytinyint(2) NOT NULL default '0',bmonthvarchar(50) NOT NULL default '',byearvarchar(4) NOT NULL default '',adaytinyint(2) NOT NULL default '0',amonthvarchar(50) NOT NULL default '',ayearvarchar(4) NOT NULL default '',address2text NOT NULL,phone2text NOT NULL,notestext NOT NULL,photomediumtext,x_vcardmediumtext,x_activesyncmediumtext,createddatetime default NULL,modifieddatetime default NULL,deprecateddatetime NOT NULL default '0000-00-00 00:00:00',passwordtext,logindate default NULL,roletext,PRIMARY KEY (
id,deprecated,domain_id)) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1775 ;
Sorry, the title column is missing. Copy the "alter table add column company"
statement from the last upgrade, then replace "company" by "title".
Sorry O.
PS: I will fix this in v7.0.1
I don't see it in the sql script.
do you mean adding a column "title" with the same defenitions as "company"?
Yes, apply this:
ALTER TABLE
addressbookADDtitlevarchar(255) default NULL AFTERcompany;1- thank you VERY MUCH
2- is there a practical reason for the "AFTER" item or it's just good
practice?
You're welcome, it's nice to have some quality assurance :-)
The "after" is required if you want to add the columns in the exact same
order. The application does not require this, but you may have some logic
doing so. I would recommend to keep the structure as close as possible to the
"absolut" one of "addressbook.sql".