[mythtv-commits] Ticket #199: multiple favorite channel groups
MythTV
mythtv at cvs.mythtv.org
Sat Feb 14 16:58:44 UTC 2009
#199: multiple favorite channel groups
-------------------------+--------------------------------------------------
Reporter: xris | Owner: stuartm
Type: enhancement | Status: assigned
Priority: minor | Milestone: 0.22
Component: mythtv | Version: head
Severity: medium | Resolution:
Mlocked: 0 |
-------------------------+--------------------------------------------------
Comment(by anonymous):
Replying to [comment:52 anonymous]:
> Further to my post above:
>
> I found the table creation instructions in the middle of this thread,
(13 months ago) and tried them. The first worked fine:
>
> mysql> CREATE TABLE IF NOT EXISTS channelgroup (id int(10) unsigned NOT
NULL auto_increment, chanid int(11) unsigned NOT NULL default '0', grpid
int(11) NOT NULL default '1', PRIMARY KEY (id));
> Query OK, 0 rows affected, 1 warning (0.00 sec)
>
> But the second did not (I tried all the suggested code in this thread,
and some of my own):
>
> mysql> CREATE TABLE IF NOT EXISTS channelgroupnames (grpid int(10)
unsigned NOT NULL auto_increment,name varchar(64) NOT NULL default
,PRIMARY KEY (grpid));
> ERROR 1064 (42000): You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right syntax
to use near 'PRIMARY KEY (grpid))' at line 1
>
There is an obvious error in channelgroupnames table creation, the correct
syntax is :
CREATE TABLE IF NOT EXISTS channelgroupnames (grpid int(10) unsigned NOT
NULL auto_increment,name varchar(64) NOT NULL default '0',PRIMARY KEY
(grpid));
default '0' NOT default
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/199#comment:54>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list