-- AlterTable: the level a weapon or item starts at (its dice are the damage at this level) ALTER TABLE "weapons" ADD COLUMN "minLevel" INTEGER NOT NULL DEFAULT 1; ALTER TABLE "items" ADD COLUMN "minLevel" INTEGER NOT NULL DEFAULT 1; -- Gear levels now stop at 9. UPDATE "character_weapons" SET "level" = 9 WHERE "level" > 9; UPDATE "inventory_items" SET "level" = 9 WHERE "level" > 9;