DROP INDEX IF EXISTS uk_brand_question_text_active;
DROP INDEX IF EXISTS idx_brand_questions_intent;

ALTER TABLE brand_questions
    DROP CONSTRAINT IF EXISTS ck_brand_questions_layer,
    DROP CONSTRAINT IF EXISTS ck_brand_questions_intent,
    DROP CONSTRAINT IF EXISTS ck_brand_questions_source,
    DROP COLUMN IF EXISTS source,
    DROP COLUMN IF EXISTS intent,
    DROP COLUMN IF EXISTS layer;

DROP INDEX IF EXISTS idx_brand_keywords_internal_source;

ALTER TABLE brand_keywords
    DROP CONSTRAINT IF EXISTS ck_brand_keywords_layer,
    DROP CONSTRAINT IF EXISTS ck_brand_keywords_source,
    DROP COLUMN IF EXISTS source,
    DROP COLUMN IF EXISTS seed_word,
    DROP COLUMN IF EXISTS layer;
