1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 17:30:59 +01:00
phorge-phorge/resources/sql/autopatches/20140629.legalsig.1.sql
epriestley ffc1b5c26a Allow users to search for signatures by name and email substrings
Summary:
Ref T3116. In the case of anonymous signers, there's no way to do a quick way to check if someone has signed a doc since you can't query by their (nonexistent) external account ID.

Move "name" and "email" to first-class columns and let the engine search for them.

Test Plan: Searched for signatures with name and email fragments.

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T3116

Differential Revision: https://secure.phabricator.com/D9776
2014-06-29 07:51:03 -07:00

7 lines
290 B
SQL

ALTER TABLE {$NAMESPACE}_legalpad.legalpad_documentsignature
ADD signerName VARCHAR(255) NOT NULL COLLATE utf8_general_ci
AFTER signerPHID;
ALTER TABLE {$NAMESPACE}_legalpad.legalpad_documentsignature
ADD signerEmail VARCHAR(255) NOT NULL COLLATE utf8_general_ci
AFTER signerName;