Add new field to the invoice_type table.
Member Type
Will be used for creating new invoices based on member type.
* version from this plugin.
*/
define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '0.0.1');
-define('GLM_MEMBERS_BILLING_PLUGIN_DB_VERSION', '0.0.13');
+define('GLM_MEMBERS_BILLING_PLUGIN_DB_VERSION', '0.0.14');
// This is the minimum version of the GLM Members DB plugin require for this plugin.
define('GLM_MEMBERS_BILLING_PLUGIN_MIN_MEMBERS_REQUIRED_VERSION', '2.8.0');
id INT NOT NULL AUTO_INCREMENT,
name TINYTEXT NOT NULL, -- name
parent INT NOT NULL DEFAULT 0, -- 0 if top level otherwise ref to another line_item_type as it's parent
+ member_type INT NOT NULL DEFAULT 0, -- Member Type assigned Default 0
amount DECIMAL(8,2) NOT NULL DEFAULT '0.00', -- amount
recurring BOOLEAN DEFAULT '0', -- true/false if recurring
recurrence INT NULL DEFAULT 0, -- recurrence type
'0.0.11' => array('version' => '0.0.11', 'tables' => 14),
'0.0.12' => array('version' => '0.0.12', 'tables' => 14),
'0.0.13' => array('version' => '0.0.13', 'tables' => 14),
+ '0.0.14' => array('version' => '0.0.14', 'tables' => 14),
);
--- /dev/null
+-- Gaslight Media Billing Database
+-- File Created: 03/19/2018
+-- Database Version: 0.0.14
+--
+-- To permit each query below to be executed separately,
+-- all queries must be separated by a line with four dashes
+
+-- Add member_type to invoice_type table
+ALTER TABLE {prefix}invoice_types ADD member_type INT NOT NULL DEFAULT 0; -- Member Type assigned Default 0