Advertisement:
2by2host

Author Topic: please help me -=- an error in level "Database Changes"  (Read 1492 times)

Offline hodhodshop.com

  • Newbie
  • *
  • Posts: 8
please help me -=- an error in level "Database Changes"
« on: May 27, 2012, 09:21:43 AM »
please help me -=- an error in level "Database Changes"

text of error:

Quote
Executing database changes
Please be patient - this may take some time on large forums. The time elapsed increments from the server to show progress is being made!
Executing upgrade script 1 of 2.
Executing: "Updating holidays and calendar..." (5 of 19 - of this script).

!!Error!
Duplicate entry '0001-01-01' for key 'PRIMARY'


Offline emanuele

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,836
  • Gender: Male
  • Because Orange is Orange
Re: please help me -=- an error in level "Database Changes"
« Reply #1 on: May 28, 2012, 04:24:07 AM »
Hi hodhodshop.com.

What are you trying to do?
Upgrading?
From which version to which?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline emanuele

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,836
  • Gender: Male
  • Because Orange is Orange
Re: please help me -=- an error in level "Database Changes"
« Reply #2 on: May 28, 2012, 04:40:32 AM »
The error seems due to a primary index on a start or end date column, but as far as I can see SMF doesn't introduce any primary index on these columns.
What you can do is check from phpMyAdmin if there is a primary index for one or both the columns eventDate and startDate in the tables smf_calendar and/or smf_calendar_holidays.

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline hodhodshop.com

  • Newbie
  • *
  • Posts: 8
Re: please help me -=- an error in level "Database Changes"
« Reply #3 on: May 28, 2012, 06:22:13 AM »
Hi hodhodshop.com.
What are you trying to do?
Upgrading?
From which version to which?

Hello my friend

yes Upgrading

From version 1.1.16 to 2.0.2


Offline hodhodshop.com

  • Newbie
  • *
  • Posts: 8
Re: please help me -=- an error in level "Database Changes"
« Reply #4 on: May 28, 2012, 08:59:34 AM »

pic of smf_calendar



pic of smf_calendar_holidays

Offline emanuele

  • Developer
  • SMF Super Hero
  • *
  • Posts: 11,836
  • Gender: Male
  • Because Orange is Orange
Re: please help me -=- an error in level "Database Changes"
« Reply #5 on: May 28, 2012, 04:45:04 PM »
In the second picture, under "Indexes" you see two rows, the first with ID_HOLIDAY under the columnc "Column" and the second with "eventDate", click the "drop" button corresponding to eventDate and the upgrade should work. :)

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.