Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
database system
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 Nov 2005 at 06:39 UTC
Updated:
3 Jul 2007 at 09:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
Zen commentedAnd just to clarify, the AUTO_INCREMENTs have been left in as is.. :)
-K
Comment #2
Cvbge commentedIf you're sure you're only adding UNSIGNED and not changing any other column propriety, then it's ok from postgresql point of view. Postgresql does not have UNSIGNED at all.
If you're updating database in updates.inc, shouldn't you provide a patch to update database.mysql* too?
Comment #3
Zen commentedI thought about that, but then decided against it as I thought it would be better practice to apply this update on a central database and then take a dump from it to update database.mysql. I'm not sure how consistent mysql dumps are between versions etc...
If needed, I'll be happy to make one though :)
Cheers
-K
Comment #4
dries commenteddatabase.mysql needs to be updated too
Comment #5
Zen commenteddatabase.mysql patch attached.
-K
P.S Just a quick note supporting my previous statement as to why I don't like patching the SQL file:
While I was patching the file I noticed -
a) Something introduced in updates.inc was not added to database.mysql [an UNSIGNED, so corrected]
b) Tables are not in alphabetical order.
c) Reserved words are not capitalised.
and I'm sure there are more. This is a needless step that doubles the possibility of inconsistency. IMO the patch should be applied to the base MySQL DB that Drupal supports, and then the dump should be taken. This should then be diff-ed with the existing database.mysql file and a patch should be created. This should obviously only be done at a central point..
My 0.02..
Comment #6
Zen commentedupdates.inc patch also updated.
-K
Comment #7
drummNo longer applies.
Comment #8
wim leersThe schema module in Drupal 6 has rendered this obsolete.