[ErrorSystem-devel] RE: About Errorsystem DB structure
Status: Planning
Brought to you by:
sonicmctails
From: BrokenClock <bro...@fr...> - 2003-12-16 14:04:44
|
Hi, about item 1: I think so about item 2: you may be right. I'm not expert with db. Have fun, Stephane > -----Message d'origine----- > De : nw [mailto:bi...@ra...] > Envoy=E9 : mardi 16 d=E9cembre 2003 08:59 > =C0 : bro...@fr... > Objet : About Errorsystem DB structure > > > Hello. > 1_) I think you are right about using system name as primary key > because errorsystem server administrator must build GET-Method query > and there he has to indicate primary key of system (like > "errordisplay?SYSTEM=3DYOURSYSTEM&errnum=3D25&lg=3Den"). SYSTEM=3DYOURS= YSTEM > is the better way than by example SYSTEM=3D21 (if systemID field value > will be 21). Name is more understandable than char id. > 2_) You suggest to create one table per one system and one table per > one yoursystem-language (if i understood your idea right). But if > errorsystem server will manage many systems and every these systems > will have many languages - wouldn't it be too slow errorsystem? Or > vice versa? > 3_) About "poor english" never mind. This language is not native for > me too. > > Best Regards. > nw > > On Mon, 15 Dec 2003 21:37:27 +0100 > "BrokenClock" <bro...@fr...> wrote: > >ES-Main : > >"One record for one system." I never thought that ES should manage > >only one > >system. I thought using name as primary key. But if you tell that's > >better > >to have a system id as key, why not? > > > >About langages : I have suggest that ES would create one table for > >each > >langage and system. I never suggested that ES would manage only two > >langage > >per system. Well, but I made a mistake in the design page : the deflg > >field > >describ in the ES-main table should be used also in the > >yoursystem-ini > >table. It would define the default langage used by yoursystem in the > >yoursystem-ini table, and the default langage used by ES and all the > >systems > >(but ones defined in the yoursystem-ini table) in the ES-main. And > >default > >langages did not mean that ES woould not be able to display others. > >You > >should add as many langages as you need. That why I thought to use > >one table > >per langage. So you whould have yoursystem-en table for english, > >yoursystem-fr for french, and so on. Maybe I wasn'd as clear as I > >wish > >(pardon my poor english, I'm not very used to it, and I'm a little > >tired > >those days (just have a removal, big update is running just *now*, > >some > >difficulties with critical process, well, well, well stop complain!)) > >I mean, I don't know if a langage table is required. > >About Errorlevel table : do we really need it? What the others think? > >A > >description in the documentation should enough? > >About foreign key : see McTail mail. > > > >Well, it's time to go to bed, I think. > > > >Have fun dreams, guys > > > >Stephane > > > > > >> -----Message d'origine----- > >> De : nw [mailto:bi...@ra...] > >> Envoy=E9 : lundi 15 d=E9cembre 2003 10:00 > >> =C0 : bro...@fr... > >> Objet : Re: PHP developpers for ErrorSystem > >> > >> > >> Hello. > >> I've visited design page. Following is an example MySql database > >> structure as i see it: > >> > >> ES-Main table > >> _____________ > >> System ID (i think that errorsystem server should can manage not > >>only > >> one system. This field can be unique key for every system) > >> System Name (that you have described) > >> AdminMail (that you have described) > >> DefLg (that you have described) > >> > >> ES-Languages table (good error system should support more than 2 > >> languages, let the user manage any number of languages. This table > >> only define system languages but not errors text) > >> __________________ > >> SystemID (foreign key to associate with specific system from > >>ES-Main) > >> LanguageShortName (fr, eng, ru or another - used as primary key) > >> LanguageFullName (France, English, Russian or another. This field > >> maybe must contain native name of language - Deutsch, =D0=F3=F1=F1=EA= =E8=E9, > >>English > >> or another) > >> > >> ES-Errors table (contain special info about errors) > >> ________________ > >> ErrorNum (used as index and primary key) > >> ErrorLevel (foreign key to asscociate with following ES-ErrorLevels > >> table) > >> InternalCode > >> (In this table i have some doubts about errorName to use by special > >> action and SpecialMsg to use by special action) > >> > >> > >> ES-ErrorLevels table > >> ____________________ > >> ErrorLevel (number of level, used as primary key) > >> ErrorLevelDescription (like "stop the execution of the software") > >> > >> > >> ES-Messages table (contain messages table for every language, > >>defined > >> in ES-Languages table) > >> _________________ > >> LanguageShortName (used to make relation with language from > >> ES-Languages table) > >> ErrorNum (used foreign key to make relation with ES-Errors table) > >> ErrorName (in this language) > >> ShortDesc > >> LongDesc > >> HTMLDesc > >> XMLDesc > >> > >> This way structured database is able to manage any numbers of error > >> systems in one database (became error system server), is able to use > >> any numbers of user defined languages. > >> > >> I think so. > >> Best Regards. > >> nw. > >> > >> On Thu, 11 Dec 2003 16:35:01 +0100 > >> "BrokenClock" <bro...@fr...> wrote: > >> >Hi, > >> > > >> >I've already add you as a developer. > >> >I was just working on an update of the design page when i received > >> >your > >> >mail. What will I say on this page in about one hour? That, as > >> >McTails > >> >suggested, we better planed to use SQLite (www.sqlite.com) instead > >>of > >> >flat > >> >files. SQLite will be implemented in PHP5, which should be > >>published > >> >very > >> >soon. Waiting, we will use MySQL. I think we should not have a lot > >>of > >> >work > >> >to add the code for SQLite, using SQL requests. > >> >Check the page when it is up to date, and we will re-talk about it. > >> > > >> >Regards, > >> > > >> >Stephane > >> > > |