2012-04-30 07:53:53 -07:00
|
|
|
ALTER TABLE `{$NAMESPACE}_project`.`project`
|
2012-03-09 18:06:39 -08:00
|
|
|
MODIFY `phrictionSlug` varchar(128) binary;
|
|
|
|
|
2012-04-30 07:53:53 -07:00
|
|
|
ALTER TABLE {$NAMESPACE}_repository.repository_path
|
2012-03-09 18:06:39 -08:00
|
|
|
ADD COLUMN pathHash varchar(32) binary AFTER path;
|
2012-04-30 07:53:53 -07:00
|
|
|
UPDATE {$NAMESPACE}_repository.repository_path SET pathHash = MD5(path);
|
|
|
|
ALTER TABLE {$NAMESPACE}_repository.repository_path
|
2012-03-09 18:06:39 -08:00
|
|
|
MODIFY pathHash varchar(32) binary not null,
|
|
|
|
DROP KEY path,
|
|
|
|
ADD UNIQUE KEY (pathHash);
|
|
|
|
|
2012-04-30 07:53:53 -07:00
|
|
|
ALTER TABLE {$NAMESPACE}_user.user_sshkey
|
2012-03-09 18:06:39 -08:00
|
|
|
ADD COLUMN keyHash varchar(32) binary AFTER keyBody;
|
2012-04-30 07:53:53 -07:00
|
|
|
UPDATE {$NAMESPACE}_user.user_sshkey SET keyHash = MD5(keyBody);
|
|
|
|
ALTER TABLE {$NAMESPACE}_user.user_sshkey
|
2012-03-09 18:06:39 -08:00
|
|
|
MODIFY keyHash varchar(32) binary not null,
|
|
|
|
DROP KEY keyBody,
|
|
|
|
ADD UNIQUE KEY (keyHash);
|