mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-15 10:00:55 +01:00
9aa5a8cb7b
Summary: Ref T2787. Instead of making providers global configuration, make them a thing on merchants with web configuration. Payment methods and some of the pyament workflow needs to be retooled a bit after this, but this seemed like a reasonable cutoff point for this diff. Test Plan: See screenshots. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T2787 Differential Revision: https://secure.phabricator.com/D10649
12 lines
569 B
SQL
12 lines
569 B
SQL
CREATE TABLE {$NAMESPACE}_phortune.phortune_paymentproviderconfig (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
phid VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
|
merchantPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
|
providerClassKey BINARY(12) NOT NULL,
|
|
providerClass VARCHAR(128) NOT NULL COLLATE utf8_bin,
|
|
metadata LONGTEXT NOT NULL COLLATE utf8_bin,
|
|
dateCreated INT UNSIGNED NOT NULL,
|
|
dateModified INT UNSIGNED NOT NULL,
|
|
UNIQUE KEY `key_phid` (phid),
|
|
UNIQUE KEY `key_merchant` (merchantPHID, providerClassKey)
|
|
) ENGINE=InnoDB, COLLATE=utf8_bin;
|