addons-server/migrations/148-hotness.sql

15 строки
499 B
MySQL
Исходник Обычный вид История

2011-02-12 01:40:04 +03:00
CREATE TABLE `frozen_addons` (
`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
`addon_id` integer NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE addons
ADD COLUMN `hotness` double NOT NULL DEFAULT 0;
CREATE INDEX hotness_idx on addons (hotness);
-- See you in a couple hours.
-- I'm commenting this out and running it on production separately because I
-- don't want it to block our roll out. --clouserw
-- CREATE INDEX addon_date_idx ON update_counts (addon_id, date);