head	1.4;
access;
symbols;
locks; strict;
comment	@# @;


1.4
date	2001.08.23.19.05.27;	author kmaples;	state Exp;
branches;
next	1.3;

1.3
date	2001.07.25.01.26.40;	author kmaples;	state Exp;
branches;
next	1.2;

1.2
date	2001.07.24.23.16.42;	author kmaples;	state Exp;
branches;
next	1.1;

1.1
date	2001.07.24.21.51.20;	author kmaples;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Misc. table changes to support optimization of Helm/IZ api.
@
text
@# Create lookup col between IZ and Helm:

ALTER TABLE profiles 
    ADD COLUMN helm_user_id  mediumint(9) NOT NULL AFTER userid,
    ADD INDEX  helm_user_id (userid, helm_user_id);

# Create table to hold internal, programmatic, or old users
# that for whatever reason are not found in helm:

CREATE TABLE profiles_internal (
    userid        mediumint               NOT NULL PRIMARY KEY,
    login_name varchar(255)               NOT NULL 
);
@


1.3
log
@Sorting out migration of IZ user record data in the case of programmatic
users
@
text
@d1 1
a1 1
# Create lookup table between IZ and Helm:
d3 3
a5 8
CREATE TABLE issuezilla_x_helm (
    iz_user_id    mediumint(9)            NOT NULL,
    helm_user_id  mediumint(9)            NOT NULL,

    PRIMARY KEY (iz_user_id, helm_user_id),
    UNIQUE       iz_user_id   (iz_user_id),
    UNIQUE       helm_user_id (helm_user_id)
);
@


1.2
log
@Added bootstrapping script for iz-to-helm lookup table; fixed table defs.
@
text
@d12 7
@


1.1
log
@Adding info for iz-to-helm table
@
text
@d7 3
a9 1
    PRIMARY KEY (iz_user_id, helm_user_id)
@

