Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 No primary key in FORUM_SUBSCRIPTIONS
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

astrandb
Starting Member

Sweden
2 Posts

Posted - 15 February 2004 :  18:19:14  Show Profile
Noticed that there is no primary key defined in the table FORUM_SUBSCRIPTIONS in MS-SQL databases. This doesn't matter until you try to migrate the MS-SQL database to MySQL.

/Åke S

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 15 February 2004 :  18:27:14  Show Profile  Visit HuwR's Homepage
There is no reason for it to have a primary key
Go to Top of Page

magdee helal
Starting Member

Egypt
2 Posts

Posted - 15 February 2004 :  18:49:32  Show Profile
hello colleague
where is the topics of this forum
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 16 February 2004 :  04:19:29  Show Profile  Visit HuwR's Homepage
quote:
Originally posted by magdee helal

hello colleague
where is the topics of this forum


?
Go to Top of Page

astrandb
Starting Member

Sweden
2 Posts

Posted - 16 February 2004 :  11:10:03  Show Profile
quote:
Originally posted by HuwR

There is no reason for it to have a primary key



I agree in principle but...
All other tables has a primary key defined - even in MS-SQL. And it is required that tables with auto-increment fields have one in MySql.

My problem appeared when I used a script to migrate the database from MS-SQL to MySQL. The only table that could not be moved was _SUBSCRIPTIONS. Not a big issue. But next time someone tries the same manoeuvre it will fail.
/Åke S
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 16 February 2004 :  11:21:08  Show Profile  Visit HuwR's Homepage
Our recomendation when migrating databases is to create the tables using the script supplied with the forum and then import only your data from your existing database, otherwise problems will occur.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07