DB schema changes/tweaks
Posted: Wed Mar 09, 2005 10:30 pm
I just did an install of serendipity and I had a few questions/comments/bugs.
1) The username field in the serendipity should have unique constraint. I understand that the authorid file is the pkey, but wierd things happen when you have two authors with the same username. This happened because I upgraded from nucleus and it reimported my username from there. (If your curious, most of the admin options (Import being one of them) break in some fashion). Yes, both users have the same userlevel.
2) in the comments table, the field subscribed is not null, but has no default value. When I did my import from nucleus (actually blogcms) the import of every comment failed because the not_null constraint was violated. As a sidenote, I can't think of anything less fun than having the import script spit back at me 60 lines of error messages including the sql statement and the php array, for each and every comment that wouldn't import. That's not a very useful error message. For a few it's ok, but for 1700...firefox just hung for a long ass time with it.
3) Is there a particular reason that tables in postgresql are using OIDs?
4) There should be a note somewhere about long comments being an issue on imports (or in general). Although it only happened to me with two comments, it gave me an error message that the row was too big for the btree index.
5) Is there any reason y'all don't use foreign keys at all? Strikes me as kind of missing out on one of the major benefits of a good sql database....referrential integrity.
Other than that, I'm really excited about moving to this from nucleus. Oh, y'all might want to change the text in the import drop down to allow people to select <a href="http://blogcms.com/">blog:cms</a> as well...it's based around nucleus, so the import worked flawlessly. Oh and maybe include a note in the docs too.
1) The username field in the serendipity should have unique constraint. I understand that the authorid file is the pkey, but wierd things happen when you have two authors with the same username. This happened because I upgraded from nucleus and it reimported my username from there. (If your curious, most of the admin options (Import being one of them) break in some fashion). Yes, both users have the same userlevel.
2) in the comments table, the field subscribed is not null, but has no default value. When I did my import from nucleus (actually blogcms) the import of every comment failed because the not_null constraint was violated. As a sidenote, I can't think of anything less fun than having the import script spit back at me 60 lines of error messages including the sql statement and the php array, for each and every comment that wouldn't import. That's not a very useful error message. For a few it's ok, but for 1700...firefox just hung for a long ass time with it.
3) Is there a particular reason that tables in postgresql are using OIDs?
4) There should be a note somewhere about long comments being an issue on imports (or in general). Although it only happened to me with two comments, it gave me an error message that the row was too big for the btree index.
5) Is there any reason y'all don't use foreign keys at all? Strikes me as kind of missing out on one of the major benefits of a good sql database....referrential integrity.
Other than that, I'm really excited about moving to this from nucleus. Oh, y'all might want to change the text in the import drop down to allow people to select <a href="http://blogcms.com/">blog:cms</a> as well...it's based around nucleus, so the import worked flawlessly. Oh and maybe include a note in the docs too.