Files
play-life/play-life-backend/migrations_old/003_remove_words_unique_constraint.sql
poignatov 90643c504a
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m19s
4.0.0: Исправлена обработка старых дампов
2026-01-25 16:41:50 +03:00

12 lines
392 B
SQL

-- 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;