Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Перевод хранилища с версии 1.0rc2 на 1.0rc3 #3

Closed
abbat opened this issue May 27, 2011 · 2 comments
Closed
Milestone

Comments

@abbat
Copy link
Contributor

abbat commented May 27, 2011

SQLite:

CREATE INDEX `message_ix_id_forum_message_date` ON `message` (`id_forum`, `message_date`);

(копия http://trac.opensvn.ru/avalon/ticket/92)

@abbat
Copy link
Contributor Author

abbat commented Sep 1, 2011

SQLite:

DROP TABLE `rating`;
CREATE TABLE `rating`
(
    `id_message`  INTEGER NOT NULL,
    `id_topic`    INTEGER NOT NULL,
    `id_user`     INTEGER NOT NULL,
    `user_rating` INTEGER NOT NULL,
    `rate`        INTEGER NOT NULL,
    `rate_date`   INTEGER NOT NULL,
    `rate_type`   INTEGER NOT NULL,
    PRIMARY KEY (`id_message`, `id_user`, `rate_type`)
);
UPDATE `row_version` SET `value` = 'AAAAAAAAAAA=' WHERE `key` = 'rating';

@abbat
Copy link
Contributor Author

abbat commented Sep 1, 2011

MySQL:

DELETE FROM `rating`;
ALTER TABLE `rating` ADD COLUMN `rate_type` TINYINT(1) NOT NULL COMMENT 'тип оценки (0 - смайл, 1 - +/-, 2 - балл)' AFTER `rate_date`;
ALTER TABLE `rating` DROP PRIMARY KEY;
ALTER TABLE `rating` ADD PRIMARY KEY (`id_message`, `id_user`, `rate_type`);
UPDATE `row_version` SET `value` = 'AAAAAAAAAAA=' WHERE `key` = 'rating';

@ghost ghost assigned abbat Aug 10, 2012
@abbat abbat closed this as completed Aug 10, 2012
@abbat abbat removed their assignment Mar 8, 2015
kan-izh pushed a commit to kan-izh/avalon that referenced this issue Aug 15, 2017
Улучшена клавиатурная навигация
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant