{-# LANGUAGE QuasiQuotes #-}

module Simplex.Chat.Migrations.M20220715_groups_chat_item_id where

import Database.SQLite.Simple (Query)
import Database.SQLite.Simple.QQ (sql)

m20220715_groups_chat_item_id :: Query
m20220715_groups_chat_item_id =
  [sql|
ALTER TABLE groups ADD COLUMN chat_item_id INTEGER DEFAULT NULL REFERENCES chat_items ON DELETE SET NULL;
|]
