Hi,
I've created a page based on the adjacency model with the following table structure :
The problem is that now, for some reason I can't exlain here, I want to have an index that starts from zero and that isn't auto_increment.
So, I changed the table like this :
The result is that my page is broken as a direct result from this change.
So, my question is : does the adjacency model absolutely require an auto_increment index starting from 1 or is it more likely to be a problem with my code?
I'm asking this because my code looks OK ... and I keep scratching my head ....
I've created a page based on the adjacency model with the following table structure :
Code:
CREATE TABLE def_pages (
file_ID bigint(20) NOT NULL auto_increment,
file_parent_ID bigint(20) NOT NULL default '0',
file_lang tinytext NOT NULL,
file_name tinytext NOT NULL,
file_path text NOT NULL,
file_status set('show','hide') NOT NULL default 'hide',
UNIQUE KEY file_ID (file_ID)
) TYPE=MyISAM;
The problem is that now, for some reason I can't exlain here, I want to have an index that starts from zero and that isn't auto_increment.
So, I changed the table like this :
Code:
CREATE TABLE def_pages (
file_ID bigint(20) NOT NULL default '0',
file_parent_ID bigint(20) NOT NULL default '0',
file_lang tinytext NOT NULL,
file_name tinytext NOT NULL,
file_path text NOT NULL,
file_status set('show','hide') NOT NULL default 'hide',
UNIQUE KEY file_ID (file_ID)
) TYPE=MyISAM;
The result is that my page is broken as a direct result from this change.
So, my question is : does the adjacency model absolutely require an auto_increment index starting from 1 or is it more likely to be a problem with my code?
I'm asking this because my code looks OK ... and I keep scratching my head ....