1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52:41 +01:00
phorge-phorge/resources/sql/autopatches/20140507.smstable.sql
Bob Trahan e96c363eef Add SMS support
Summary:
Provides a working SMS implementation with support for Twilio.

This version doesn't really retry if we get any gruff at all. Future versions should retry.

Test Plan: used bin/sms to send messages and look at them.

Reviewers: chad, epriestley

Reviewed By: epriestley

Subscribers: aurelijus, epriestley, Korvin

Maniphest Tasks: T920

Differential Revision: https://secure.phabricator.com/D8930
2014-05-09 12:47:21 -07:00

12 lines
568 B
SQL

CREATE TABLE {$NAMESPACE}_metamta.sms (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
providerShortName VARCHAR(16) NOT NULL COLLATE utf8_bin,
providerSMSID VARCHAR(40) NOT NULL COLLATE utf8_bin,
toNumber VARCHAR(20) NOT NULL COLLATE utf8_bin,
fromNumber VARCHAR(20) COLLATE utf8_bin,
body LONGTEXT NOT NULL COLLATE utf8_bin,
sendStatus VARCHAR(16) COLLATE utf8_bin,
dateCreated INT UNSIGNED NOT NULL,
dateModified INT UNSIGNED NOT NULL,
UNIQUE KEY `key_provider` (providerSMSID, providerShortName)
) ENGINE=InnoDB, COLLATE utf8_general_ci;