1
wcrwcr
[MODULE] myReferer: Invalid default value for 'startdate'
  • 2007/5/26 19:09

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


hi all

After lots of smooth installations, for the first time I got this error when trying to install myReferer:

=========================
ERROR
Installing myReferer

Invalid default value for 'startdate'

Unable to install myReferer. Error(s):


Back to Module Administration page
=======================================
Compared to early installs, the only environment differnce is NOW using mySql 5

Anyone know how to fix this?

Thanks in advance,
Wilson

PS. just in case, follows the mysql.sql code:

CREATE TABLE myref_referer (
   
id int(8NOT NULL auto_increment,
   
engine tinyint(2unsigned default '0',
   
referer varchar(255) default NULL,
   
ref_url varchar(255) default NULL,
   
page varchar(255) default NULL,
   
visit int(8unsigned default '0',
   
startdate int(11unsigned NOT NULL default '',
   
date int(11unsigned NOT NULL default '',
   
hide tinyint(2unsigned default 'd',
   
PRIMARY KEY (id)
);

CREATE TABLE myref_robots (
   
id int(8NOT NULL auto_increment,
   
robots varchar(255) default NULL,
   
ref_url varchar(255) default NULL,
   
page varchar(255) default NULL,
   
visit int(8unsigned default '0',
   
startdate int(11unsigned NOT NULL default '',
   
date int(11unsigned NOT NULL default '',
   
hide tinyint(2unsigned default 'd',
   
PRIMARY KEY (id)
);


CREATE TABLE myref_query (
   
id int(8NOT NULL auto_increment,
   
query varchar(24) default NULL,
   
page varchar(255) default NULL,
   
visit int(8unsigned default '0',
   
startdate int(11unsigned NOT NULL default '',
   
date int(11unsigned NOT NULL default '',
   
hide tinyint(2unsigned default 'd',
   
PRIMARY KEY (id)
);

2
wcrwcr
Re: [MODULE] myReferer: Invalid default value for 'startdate'
  • 2007/5/26 20:00

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


I?ve found

just write a new msql.sql fila like this:

CREATE TABLE myref_referer (
   
id int(8NOT NULL auto_increment,
   
engine tinyint(2unsigned default '0',
   
referer varchar(255) default NULL,
   
ref_url varchar(255) default NULL,
   
page varchar(255) default NULL,
   
visit int(8unsigned default '0',
   
startdate int(11NOT NULL default '0',
   
date int(11NOT NULL default '0',
   
hide tinyint(2NOT NULL default '0',
   
PRIMARY KEY (id)
);

CREATE TABLE myref_robots (
   
id int(8NOT NULL auto_increment,
   
robots varchar(255) default NULL,
   
ref_url varchar(255) default NULL,
   
page varchar(255) default NULL,
   
visit int(8unsigned default '0',
   
startdate int(11NOT NULL default '0',
   
date int(11NOT NULL default '0',
   
hide tinyint(2NOT NULL default '0',
   
PRIMARY KEY (id)
);


CREATE TABLE myref_query (
   
id int(8NOT NULL auto_increment,
   
query varchar(24) default NULL,
   
page varchar(255) default NULL,
   
visit int(8unsigned default '0',
   
startdate int(11NOT NULL default '0',
   
date int(11NOT NULL default '0',
   
hide tinyint(2NOT NULL default '0',
   
PRIMARY KEY (id)
);


it?s now working

3
Frodo
Re: [MODULE] myReferer: Invalid default value for 'startdate'
  • 2007/5/26 20:13

  • Frodo

  • Just popping in

  • Posts: 6

  • Since: 2006/10/11


Quote:

wcrwcr wrote:
hi all

After lots of smooth installations, for the first time I got this error when trying to install myReferer:

=========================
ERROR
Installing myReferer

Invalid default value for 'startdate'

Unable to install myReferer. Error(s):




i found soluction Here

Login

Who's Online

150 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 150


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits