drupal 6键1的重复输入“0”

时间:2011-12-15 05:20:05

标签: drupal-6 drupal-webform

webform表中插入唯一ID时,我将其插入本地服务器,但在实时服务器上,它为“密钥1”提供了“重复条目'0”错误。 本地服务器上的Webform表结构:

CREATE TABLE `webform` (
  `nid` int(10) unsigned NOT NULL,
  `confirmation` text NOT NULL,
  `confirmation_format` tinyint(4) NOT NULL DEFAULT '0',
  `redirect_url` varchar(255) DEFAULT '<confirmation>',
  `status` tinyint(4) NOT NULL DEFAULT '1',
  `block` tinyint(4) NOT NULL DEFAULT '0',
  `teaser` tinyint(4) NOT NULL DEFAULT '0',
  `allow_draft` tinyint(4) NOT NULL DEFAULT '0',
  `auto_save` tinyint(4) NOT NULL DEFAULT '0',
  `submit_notice` tinyint(4) NOT NULL DEFAULT '1',
  `submit_text` varchar(255) DEFAULT NULL,
  `submit_limit` tinyint(4) NOT NULL DEFAULT '-1',
  `submit_interval` int(11) NOT NULL DEFAULT '-1',
  `total_submit_limit` int(11) NOT NULL DEFAULT '-1',
  `total_submit_interval` int(11) NOT NULL DEFAULT '-1',
  PRIMARY KEY (`nid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

实时服务器上的Webform表结构:

create table `webform` (
    `nid` double ,
    `confirmation` blob ,
    `teaser` tinyint (4),
    `submit_text` varchar (765),
    `submit_limit` tinyint (4),
    `submit_interval` double ,
    `additional_validate` blob ,
    `additional_submit` blob ,
    `confirmation_format` tinyint (4),
    `submit_notice` tinyint (4),
    `allow_draft` tinyint (4),
    `redirect_url` varchar (765),
    `block` tinyint (4),
    `status` tinyint (4),
    `auto_save` tinyint (4)
); 

要插入的nid是唯一的,那么潜在的问题是什么?

0 个答案:

没有答案