Made changes as per Marco's comments

This commit is contained in:
MrCasual
2015-09-02 17:28:49 -04:00
parent e2775981af
commit c804e44961
6 changed files with 36 additions and 36 deletions

View File

@@ -33,13 +33,13 @@ class Initializer {
$subscribers = Env::$db_prefix . 'subscribers';
$settings = Env::$db_prefix . 'settings';
$newsletters = Env::$db_prefix . 'newsletters';
$lists = Env::$db_prefix . 'lists';
$segments = Env::$db_prefix . 'segments';
$subscriber_segment = Env::$db_prefix . 'subscriber_segment';
define('MP_SUBSCRIBERS_TABLE', $subscribers);
define('MP_SETTINGS_TABLE', $settings);
define('MP_NEWSLETTERS_TABLE', $newsletters);
define('MP_LISTS_TABLE', $lists);
define('MP_SEGMENTS_TABLE', $segments);
define('MP_SUBSCRIBER_SEGMENT_TABLE', $subscriber_segment);
}

View File

@@ -13,7 +13,7 @@ class Migrator {
'subscribers',
'settings',
'newsletters',
'lists',
'segments',
'subscriber_segment'
);
}
@@ -79,7 +79,7 @@ class Migrator {
return $this->sqlify(__FUNCTION__, $attributes);
}
function lists() {
function segments() {
$attributes = array(
'id mediumint(9) NOT NULL AUTO_INCREMENT,',
'name varchar(90) NOT NULL,',
@@ -95,7 +95,7 @@ class Migrator {
$attributes = array(
'id mediumint(9) NOT NULL AUTO_INCREMENT,',
'subscriber_id mediumint(9) NOT NULL,',
'list_id mediumint(9) NOT NULL,',
'segment_id mediumint(9) NOT NULL,',
'created_at TIMESTAMP NOT NULL DEFAULT 0,',
'updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,',
'PRIMARY KEY (id)'