Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

SQL import news_table V7.01.05 into V7.02?

Locked Asked Modified Viewed 3,620 times
M
Martijn78
M
euhh...
  • Member, joined since
  • Contributed 107 posts on the community forums.
  • Started 25 threads in the forums
  • Started this discussions
asked
Member

Hi All,

I have the following question:


Importing the sql_dump from table "news" from the old database V7.01.05 to the new database V7.02 gives an error 1062.

Is it somehow possible to avoid that sql-error or convert it so I can import all my old newsitems (227)?
0 replies

10 posts

G
gh0st2k
G
Ex Senior Dev.
  • Member, joined since
  • Contributed 131 posts on the community forums.
answered
Member

Why don't you use the upgrade to upgrade your site?

We didn't change the news table structure, just compare them, maybe you added a column to the old table?
0 replies
M
Martijn78
M
euhh...
  • Member, joined since
  • Contributed 107 posts on the community forums.
  • Started 25 threads in the forums
  • Started this discussions
answered
Member

I did use the upgrade, but I made a mistake in the proces. (think I used the wrong upgrade.php). I've tried to fix it but I have lack of knowledge :|

After reinstalling backup the site was messed up, so I desided a clean install. That went great and all my content is almost back on the site. Didn't mind to start a new site, looks great, but it should be greater if I can get all content from news back...;)
0 replies
G
gh0st2k
G
Ex Senior Dev.
  • Member, joined since
  • Contributed 131 posts on the community forums.
answered
Member

Okay... just check the table structure... I can't help here, cause news table structure is 1:1 the same in v7.01 and v7.02!
0 replies
M
Martijn78
M
euhh...
  • Member, joined since
  • Contributed 107 posts on the community forums.
  • Started 25 threads in the forums
  • Started this discussions
answered
Member

Fout
SQL-query:

-- -- Gegevens worden uitgevoerd voor tabel fusion_news -- INSERT INTO fusion_news (news_id, news_subject, news_cat, news_image, news_image_t1, news_image_t2, news_news, news_extended, news_breaks, news_name, news_datestamp, news_start, news_end, news_visibility, news_reads, news_draft, news_sticky, news_allow_comments, news_allow_ratings) VALUES (1, 'Survivalteam.nl', 11, '', '', '', 'Vanaf vandaag zal Survivalteam Outlife haar belevenissen online vertonen op deze site! Alles heeft een begin. Zo ook deze site. Kom regelmatig terug, regelmatig zullen er nieuwe updates zijn!<br /><div style="text-align: center"><br /><img title="news: janenjan.JPG" height="135" alt="news: janenjan.JPG" src="/images/news/janenjan.JPG" width="193" border="0" /><br /><br />Hier laten Jan en Jan zien hoe blij ze hiermee zijn!<br /><br />ps. Voorlopig nog geen uitgebreid foto album. Waarschijnlijk volgende week pas...</div>', '', 'n', 1[...]

MySQL retourneerde:

#1062 - Duplicate entry '1' for key 1
Edited by Martijn78 on 20-04-2011 10:16,
0 replies
J
J_Bear
J
J_Bear 10
Jelle.
------
For every 60 seconds of anger, you lose one minute of happiness
  • Member, joined since
  • Contributed 74 posts on the community forums.
  • Started 11 threads in the forums
answered
Member

It seems to me that you have already news message with a news_id number 1
0 replies
M
Martijn78
M
euhh...
  • Member, joined since
  • Contributed 107 posts on the community forums.
  • Started 25 threads in the forums
  • Started this discussions
answered
Member

Yes, thas was what I was thinking, but I deleted all the rows, so the table is empty.(!?!)

:o
0 replies
K
Kvido
K
Kvido 10
Linux-Ubuntu 09.03.60, Linux/Ubuntu, PHP5, HTML5, Mozilla-Firefox 3.6.3, Opera 10.51, IE 8.0.6
https://www.nekecamweb.cz
  • Senior Member, joined since
  • Contributed 524 posts on the community forums.
  • Started 108 threads in the forums
answered
Senior Member

Please line but physically there (!) in the table. Write a message to another ie (2,3 ...).
0 replies
J
J_Bear
J
J_Bear 10
Jelle.
------
For every 60 seconds of anger, you lose one minute of happiness
  • Member, joined since
  • Contributed 74 posts on the community forums.
  • Started 11 threads in the forums
answered
Member

Quote

Martijn78 wrote:

Yes, thas was what I was thinking, but I deleted all the rows, so the table is empty.(!?!)

:o


It doesn't work that way. If you put 3 news messages into the database, delete all the content of the fields.
The first message/news you write after that is number 4.
So you can delete all content, but not the news_id.
0 replies
M
Martijn78
M
euhh...
  • Member, joined since
  • Contributed 107 posts on the community forums.
  • Started 25 threads in the forums
  • Started this discussions
answered
Member

Ok, I've now tried everything! I noticed tat there where minor changes in the V 7.02 databse-table so I certenly want to use the new table...
I have now made export of my table V7.02:

Merged on May 08 2011 at 22:17:07:
Please close, can't post the sql-export appearendly so can't get help...:|
Edited by Martijn78 on 08-05-2011 21:17,
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

[Thread Locked at Authors Request]
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 10 posts
  • Votes 0 votes
  • Topic users 5 members

5 participants

M
M
euhh...
  • Member, joined since
  • Contributed 107 posts on the community forums.
  • Started 25 threads in the forums
  • Started this discussions
C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
J
J
J_Bear 10
Jelle.
------
For every 60 seconds of anger, you lose one minute of happiness
  • Member, joined since
  • Contributed 74 posts on the community forums.
  • Started 11 threads in the forums
K
K
Kvido 10
Linux-Ubuntu 09.03.60, Linux/Ubuntu, PHP5, HTML5, Mozilla-Firefox 3.6.3, Opera 10.51, IE 8.0.6
https://www.nekecamweb.cz
  • Senior Member, joined since
  • Contributed 524 posts on the community forums.
  • Started 108 threads in the forums
G
G
Ex Senior Dev.
  • Member, joined since
  • Contributed 131 posts on the community forums.

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet