[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] Table Administration Question
Here is a copy of the Interchange table definition:
# MiniVend database definition
Database article article.txt __SQLDSN__
#ifdef SQLUSER
Database article USER __SQLUSER__
#endif
#ifdef SQLPASS
Database article PASS __SQLPASS__
#endif
Database article COLUMN_DEF "id=INT NOT NULL PRIMARY KEY"
Database article COLUMN_DEF "category=VARCHAR(64) NOT NULL"
Database article COLUMN_DEF "title=VARCHAR(32) NOT NULL"
Database article COLUMN_DEF "author=VARCHAR(20) NOT NULL"
Database article COLUMN_DEF "publication=CHAR(2) NOT NULL"
Database article COLUMN_DEF "headline=TEXT NOT NULL"
Database article COLUMN_DEF "fullstory=TEXT NOT NULL"
Database article COLUMN_DEF "create_date=DATETIME NOT NULL"
Database article COLUMN_DEF "headline_only=INT NOT NULL"
Database article COLUMN_DEF "display=INT NOT NULL"
Database article NUMERIC id
Database article NUMERIC headline_only
Database article NUMERIC display
Here is a copy of the actual table schema:
#
# Table structure for table 'article'
#
CREATE TABLE article (
id int(11) DEFAULT '0' NOT NULL auto_increment,
category varchar(32) DEFAULT '' NOT NULL,
title varchar(64) DEFAULT '' NOT NULL,
author varchar(64) DEFAULT '' NOT NULL,
publication varchar(64) DEFAULT '' NOT NULL,
headline text NOT NULL,
fullstory text NOT NULL,
create_date datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
headline_only int(11) DEFAULT '0' NOT NULL,
display int(11) DEFAULT '0' NOT NULL,
PRIMARY KEY (id)
);
----- Original Message -----
From: "Doug Alcorn" <doug@lathi.net>
To: <interchange-users@minivend.com>
Sent: Friday, January 26, 2001 3:50 PM
Subject: Re: [ic] Table Administration Question
> "Thomas McAlees" <tmcalees@discgolfcentral.com> writes:
>
> > No key 'id' found for function='update' table='article'
> >
> > Have I incorrectly configured something when I added the new tables?
>
> Sounds like it. I'm just guessing, but IC may not know what your
> primary key is. You might post your table definition here. Better
> yet, compare it with one of the other table definitions of a table
> similar to your and see what's different.
> --
> (__) Doug Alcorn (mailto:doug@lathi.net http://www.lathi.net)
> oo / PGP 02B3 1E26 BCF2 9AAF 93F1 61D7 450C B264 3E63 D543
> |_/ If you're a capitalist and you have the best goods and they're
> free, you don't have to proselytize, you just have to wait.
>
>
>
> _______________________________________________
> Interchange-users mailing list
> Interchange-users@lists.akopia.com
> http://lists.akopia.com/mailman/listinfo/interchange-users
>
_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users