From 4014d7ebba00b69790252df89bef84de2fa09ad7 Mon Sep 17 00:00:00 2001 From: David VanScott Date: Fri, 7 Aug 2015 23:40:40 -0400 Subject: [PATCH] Set the update files --- CHANGELOG.md | 6 + README.md | 2 +- nova/modules/assets/install/data.php | 2 +- nova/modules/assets/update/update_240.php | 153 ++++++++++++++++++++++ nova/modules/assets/version.yml | 6 +- nova/modules/core/config/info.php | 4 +- 6 files changed, 166 insertions(+), 7 deletions(-) create mode 100644 nova/modules/assets/update/update_240.php diff --git a/CHANGELOG.md b/CHANGELOG.md index dab111e5d..019e4cf30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 2.4.1 (7 August 2015) + +### Bug Fixes + +* Fixed error thrown with missing method that was removed in the latest version of CodeIgniter 2. + ## 2.4.0 (7 August 2015) * Created a new `Mail` wrapper class around SwiftMailer for better email handling than CodeIgniter's built-in email class. Thanks to forum user TheDrew for helping us sort through some of these issues. diff --git a/README.md b/README.md index 03610615c..1a13de379 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Anodyne Production's next-generation RPG management system combines popular feat ## Current Version -2.4.0 +2.4.1 ## Bug Tracker diff --git a/nova/modules/assets/install/data.php b/nova/modules/assets/install/data.php index f7a389891..89d8eba8d 100644 --- a/nova/modules/assets/install/data.php +++ b/nova/modules/assets/install/data.php @@ -2244,7 +2244,7 @@ 'sys_install_date' => now(), 'sys_version_major' => 2, 'sys_version_minor' => 4, - 'sys_version_update' => 0) + 'sys_version_update' => 1) ); $tour_fields = array( diff --git a/nova/modules/assets/update/update_240.php b/nova/modules/assets/update/update_240.php new file mode 100644 index 000000000..4d8deb6ea --- /dev/null +++ b/nova/modules/assets/update/update_240.php @@ -0,0 +1,153 @@ + now(), + 'sys_version_major' => 2, + 'sys_version_minor' => 4, + 'sys_version_update' => 1, +); + +/* +|--------------------------------------------------------------- +| TABLES TO ADD +| +| $add_tables = array( +| 'table_name' => array( +| 'id' => 'table_id', +| 'fields' => 'fields_table_name') +| ); +| +| $fields_table_name = array( +| 'table_id' => array( +| 'type' => 'INT', +| 'constraint' => 6, +| 'auto_increment' => TRUE), +| 'table_field_1' => array( +| 'type' => 'VARCHAR', +| 'constraint' => 255, +| 'default' => ''), +| 'table_field_2' => array( +| 'type' => 'INT', +| 'constraint' => 4, +| 'default' => '99') +| ); +|--------------------------------------------------------------- +*/ + +if ($add_tables !== null) +{ + foreach ($add_tables as $key => $value) + { + $this->dbforge->add_field($$value['fields']); + $this->dbforge->add_key($value['id'], true); + $this->dbforge->create_table($key, true); + } +} + +/* +|--------------------------------------------------------------- +| TABLES TO DROP +| +| $drop_tables = array('table_name'); +|--------------------------------------------------------------- +*/ + +if ($drop_tables !== null) +{ + foreach ($drop_tables as $value) + { + $this->dbforge->drop_table($value); + } +} + +/* +|--------------------------------------------------------------- +| TABLES TO RENAME +| +| $rename_tables = array('old_table_name' => 'new_table_name'); +|--------------------------------------------------------------- +*/ + +if ($rename_tables !== null) +{ + foreach ($rename_tables as $key => $value) + { + $this->dbforge->rename_table($key, $value); + } +} + +/* +|--------------------------------------------------------------- +| COLUMNS TO ADD +| +| $add_column = array( +| 'table_name' => array( +| 'field_name_1' => array('type' => 'TEXT'), +| 'field_name_2' => array( +| 'type' => 'VARCHAR', +| 'constraint' => 100) +| ) +| ); +|--------------------------------------------------------------- +*/ + +if ($add_column !== null) +{ + foreach ($add_column as $key => $value) + { + $this->dbforge->add_column($key, $value); + } +} + +/* +|--------------------------------------------------------------- +| COLUMNS TO MODIFY +| +| $modify_column = array( +| 'table_name' => array( +| 'old_field_name' => array( +| 'name' => 'new_field_name', +| 'type' => 'TEXT') +| ) +| ); +|--------------------------------------------------------------- +*/ + +if ($modify_column !== null) +{ + foreach ($modify_column as $key => $value) + { + $this->dbforge->modify_column($key, $value); + } +} + +/* +|--------------------------------------------------------------- +| COLUMNS TO DROP +| +| $drop_column = array( +| 'table_name' => array('field_name') +| ); +|--------------------------------------------------------------- +*/ + +if ($drop_column !== null) +{ + foreach ($drop_column as $key => $value) + { + $this->dbforge->drop_column($key, $value[0]); + } +} diff --git a/nova/modules/assets/version.yml b/nova/modules/assets/version.yml index 8638f7e85..c8b003647 100644 --- a/nova/modules/assets/version.yml +++ b/nova/modules/assets/version.yml @@ -1,8 +1,8 @@ -version: 2.4.0 +version: 2.4.1 version_major: 2 version_minor: 4 -version_update: 0 +version_update: 1 severity: minor -notes: Nova 2.4.0 adds a new class for email handling that should offer more robust options and the ability to use third-party SMTP services like MailGun and Mandrill for delivering emails. +notes: Nova 2.4.1 adds a new class for email handling that should offer more robust options and the ability to use third-party SMTP services like MailGun and Mandrill for delivering emails. date: 7 August 2015 link: http://www.anodyne-productions.com/nova/index.php \ No newline at end of file diff --git a/nova/modules/core/config/info.php b/nova/modules/core/config/info.php index 6089bc24e..abe17beb2 100644 --- a/nova/modules/core/config/info.php +++ b/nova/modules/core/config/info.php @@ -2,10 +2,10 @@ define('APP_NAME', 'Nova'); -define('APP_VERSION', '2.4.0'); +define('APP_VERSION', '2.4.1'); define('APP_VERSION_MAJOR', 2); define('APP_VERSION_MINOR', 4); -define('APP_VERSION_UPDATE', 0); +define('APP_VERSION_UPDATE', 1); define('WIKI_NAME', 'Thresher'); define('WIKI_VERSION', 'Release 2');