-- Add unique constraint on Strategy.name to enable idempotent upsert in seed script ALTER TABLE `Strategy` ADD UNIQUE INDEX `Strategy_name_key`(`name`); -- Add unique constraint on Indicator.name to enable idempotent upsert in seed script ALTER TABLE `Indicator` ADD UNIQUE INDEX `Indicator_name_key`(`name`);