updated migration info

This commit is contained in:
hyung-hwan 2015-09-06 15:10:52 +00:00
parent c671cafa5d
commit 3e23b914d6

View File

@ -16,6 +16,7 @@ UPGRADING FROM 0.2.0
mysql> ALTER TABLE site ADD COLUMN(summary VARCHAR(255) NOT NULL); mysql> ALTER TABLE site ADD COLUMN(summary VARCHAR(255) NOT NULL);
mysql> RENAME TABLE user TO user_account; mysql> RENAME TABLE user TO user_account;
mysql> ALTER TABLE file DROP INDEX encname; mysql> ALTER TABLE file DROP INDEX encname;
mysql> create the file_list table according to the definition found in codepot.mysql
mysql> INSERT INTO file_list (projectid, name, filename, encname, md5sum, description) SELECT projectid, name, name, encname, md5sum, summary FROM file WHERE md5sum != ''; mysql> INSERT INTO file_list (projectid, name, filename, encname, md5sum, description) SELECT projectid, name, name, encname, md5sum, summary FROM file WHERE md5sum != '';
mysql> ALTER TABLE file DROP COLUMN summary; mysql> ALTER TABLE file DROP COLUMN summary;
mysql> ALTER TABLE file DROP COLUMN md5sum; mysql> ALTER TABLE file DROP COLUMN md5sum;