[otrs-de] Kundenbenutzergruppen und externe Kunden DB

Rudolf Harney rh at tuxwerk.de
Mit Jun 14 16:47:17 CEST 2006


Am Montag, den 12.06.2006, 17:46 +0200 schrieb Rudolf Harney:
> Hallo,
> 
> wir benutzen otrs 2.0.4 mit einer externen (mySQL) Kunden DB.
> 
> Wir können den Kunden keine Kundenbenutzergruppen zuweisen. (Wenn ich
> die externe Kunden-DB aus der Konfiguration raus nehme, geht es.)
> 
> Feature? Bug? Mein Fehler? Weiß wer was?
> 
I found it myself:
We had to add a table "valid" into the customer db and we hat to add a
column "valid_id" into the customerdb-table. the mysql code looks like:

ALTER TABLE otrs_myusertable ADD COLUMN valid_id smallint(6) DEFAULT 0;
UPDATE otrs_myusertable SET valid_id=1;

mysql> CREATE TABLE valid (
    -> id smallint(6) AUTO_INCREMENT DEFAULT NULL,
    -> name varchar(50) UNIQUE,
    -> create_time datetime DEFAULT '0000-00-00 00:00:00',
    ->  create_by int(11)  DEFAULT 0,
    -> change_time datetime DEFAULT '0000-00-00 00:00:00',
    -> change_by int(11)  DEFAULT 0,
    -> PRIMARY KEY (id)
    -> );


INSERT INTO valid (name, create_time, create_by,  change_time,
change_by ) VALUES ('valid', '2006-06-14 15:30:00', 1, '2006-06-14
15:30:00', 1)

INSERT INTO valid (name, create_time, create_by,  change_time,
change_by ) VALUES ('invalid', '2006-06-14 15:30:00', 1, '2006-06-14
15:30:00', 1)

INSERT INTO valid (name, create_time, create_by,  change_time,
change_by ) VALUES ('invalid-temporarily', '2006-06-14 15:30:00', 1,
'2006-06-14 15:30:00', 1)


Rudolf