stacker.news/prisma/migrations/20221106203216_item_indices/migration.sql

15 lines
414 B
MySQL
Raw Normal View History

2022-11-06 20:39:23 +00:00
-- CreateIndex
CREATE INDEX "Item.weightedVotes_index" ON "Item"("weightedVotes");
-- CreateIndex
CREATE INDEX "Item.weightedDownVotes_index" ON "Item"("weightedDownVotes");
-- CreateIndex
CREATE INDEX "Item.bio_index" ON "Item"("bio");
-- CreateIndex
CREATE INDEX "Item.freebie_index" ON "Item"("freebie");
-- CreateIndex
CREATE INDEX "Item.sumVotes_index" ON "Item"(("weightedVotes" - "weightedDownVotes"));