Files
play-life/play-life-backend/migrations/003_remove_words_unique_constraint.sql

12 lines
392 B
MySQL
Raw Permalink Normal View History

2025-12-29 20:01:55 +03:00
-- Migration: Remove UNIQUE constraint from words.name
-- This script removes the unique constraint on the name column in the words table
-- Drop the unique constraint on words.name if it exists
ALTER TABLE words
DROP CONSTRAINT IF EXISTS words_name_key;
-- Also try to drop constraint if it was created with different name
ALTER TABLE words
DROP CONSTRAINT IF EXISTS words_name_unique;