Turns out string fields should all be declared as "binary" if we want

them to be case-insensitive.
This commit is contained in:
terry%mozilla.org 1999-11-09 18:12:43 +00:00
Родитель 70cf6ed5ad
Коммит 807b76ef42
2 изменённых файлов: 23 добавлений и 8 удалений

Просмотреть файл

@ -10,6 +10,21 @@ query the CVS tree. For example,
will tell you what has been changed in the last week.
11/9/99 I have discovered that Bonsai gets all screwed up if you have multiple
files with the same name but different capitalization in your directory. This
is because the tables were all defined to have case-independent strings, but
you want them to be case-dependent. To fix, feed the following to mysql:
alter table dirs change column dir dir varchar(128) binary not null;
alter table files change column file file varchar(128) binary not null;
alter table people change column who who varchar(32) binary not null;
alter table repositories change column repository repository varchar(64) binary not null;
alter table branches change column branch branch varchar(64) binary not null;
alter table checkins change column revision revision varchar(32) binary not null, change column stickytag stickytag varchar(255) binary not null;
alter table tags change column revision revision varchar(32) binary not null;
10/12/99 Apparently, newer alphas of MySQL won't allow you to have
"when" as a column name. So, I have had to rename a column in the
checkins table. You must feed the below to mysql or you won't

Просмотреть файл

@ -68,7 +68,7 @@ show index from descs;
create table people (
id mediumint not null auto_increment primary key,
who varchar(32) not null,
who varchar(32) binary not null,
unique(who)
);
@ -79,7 +79,7 @@ show index from people;
create table repositories (
id mediumint not null auto_increment primary key,
repository varchar(64) not null,
repository varchar(64) binary not null,
unique(repository)
);
@ -91,7 +91,7 @@ show index from repositories;
create table dirs (
id mediumint not null auto_increment primary key,
dir varchar(128) not null,
dir varchar(128) binary not null,
unique(dir)
);
@ -102,7 +102,7 @@ show index from dirs;
create table files (
id mediumint not null auto_increment primary key,
file varchar(128) not null,
file varchar(128) binary not null,
unique(file)
);
@ -114,7 +114,7 @@ show index from files;
create table branches (
id mediumint not null auto_increment primary key,
branch varchar(64) not null,
branch varchar(64) binary not null,
unique(branch)
);
@ -131,8 +131,8 @@ create table checkins (
repositoryid mediumint not null,
dirid mediumint not null,
fileid mediumint not null,
revision varchar(32) not null,
stickytag varchar(255) not null,
revision varchar(32) binary not null,
stickytag varchar(255) binary not null,
branchid mediumint not null,
addedlines int not null,
removedlines int not null,
@ -156,7 +156,7 @@ create table tags (
branchid mediumint not null,
dirid mediumint not null,
fileid mediumint not null,
revision varchar(32) not null,
revision varchar(32) binary not null,
unique(repositoryid,dirid,fileid,branchid,revision),
index(repositoryid),