fix(sql): backfill whatsapp chat_id in compat init
This commit is contained in:
@@ -42,7 +42,6 @@ def test_init_sql_schema_backfills_whatsapp_message_runtime_columns():
|
||||
CREATE TABLE whatsapp_messages (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
message_id VARCHAR(64) NOT NULL UNIQUE,
|
||||
chat_id VARCHAR(128) NOT NULL,
|
||||
text TEXT NOT NULL,
|
||||
payload_json TEXT NOT NULL,
|
||||
created_at VARCHAR(64) NOT NULL
|
||||
@@ -58,6 +57,7 @@ def test_init_sql_schema_backfills_whatsapp_message_runtime_columns():
|
||||
indexes = {item["name"] for item in inspector.get_indexes("whatsapp_messages")}
|
||||
|
||||
assert "thread_id" in columns
|
||||
assert "chat_id" in columns
|
||||
assert "interaction_id" in columns
|
||||
assert "customer_id" in columns
|
||||
assert "delivery_status" in columns
|
||||
|
||||
Reference in New Issue
Block a user