Problem during upgrading from 1.6.12 to 2.0.0

Please report bugs here!

Moderator: Thorsten

Post Reply
rym3k
Posts: 4
Joined: Fri May 25, 2007 12:16 pm

Problem during upgrading from 1.6.12 to 2.0.0

Post by rym3k »

Hi

During upgrading phpMyFAQ from 1.6.12 to newest (2.0.0) this application report
DB error: ERROR: null value in column "user_id" violates not-null constraint

Query:

INSERT INTO faqcategories
(id, lang, parent_id, name, description)
SELECT id, lang, parent_id, name, description
FROM faqcategories_PMF16x_old
as i noticed new faqcategories has column user_id with NOT NULL constraint and this query copy old values without this field so it must be null

I hope that it help You

best regards
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

which database do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rym3k
Posts: 4
Joined: Fri May 25, 2007 12:16 pm

Post by rym3k »

PostgreSQL (8.1)
rym3k
Posts: 4
Joined: Fri May 25, 2007 12:16 pm

Post by rym3k »

I changed update.php user_id NOT NULL DEFAULT 1 to user_id NULL and I passed this step but after this I got one more bug report
DB error: ERROR: null value in column "links_state" violates not-null constraint

Query:

INSERT INTO faqdata
(id, lang, solution_id, revision_id, active, keywords, thema, content, author, email, comment, datum)
SELECT id, lang, solution_id, revision_id, active, keywords, thema, content, author, email, comment, datum
FROM faqdata_PMF16x_old
and it seems that this is the same problem
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

yes, it seems, PostgreSQL has some problems here. Can you please post that bug on http://bugs.phpmyfaq.de?

Thanks
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
rym3k
Posts: 4
Joined: Fri May 25, 2007 12:16 pm

Post by rym3k »

no problem. done.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Thank you!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply