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