From 9601f075cebb7aa455153591ee685ef2fea6dcd3 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Fri, 5 Jul 2013 13:38:10 +0200 Subject: [PATCH] Removing old upgrade SQL for old issues To avoid confusion when setting up mmcfe-ng up for the first time I decided to remove these files. If new ones should be required I will base them on the then recent main structure and order them by number. --- sql/issue_144_notification_upgrade.sql | 17 --------------- sql/issue_147_accounts_upgrade.sql | 2 -- sql/issue_148_transactions_upgrade.sql | 1 - sql/issue_167_settings_upgrade.sql | 1 - sql/issue_182_accounts_upgrade.sql | 1 - sql/issue_203_transactions_upgrade.sql | 1 - ...ssue_212_notification_settings_upgrade.sql | 1 - sql/issue_226_news_upgrade.sql | 1 - sql/issue_61_news_table.sql | 21 ------------------- sql/issue_70_transactions_upgrade.sql | 1 - 10 files changed, 47 deletions(-) delete mode 100644 sql/issue_144_notification_upgrade.sql delete mode 100644 sql/issue_147_accounts_upgrade.sql delete mode 100644 sql/issue_148_transactions_upgrade.sql delete mode 100644 sql/issue_167_settings_upgrade.sql delete mode 100644 sql/issue_182_accounts_upgrade.sql delete mode 100644 sql/issue_203_transactions_upgrade.sql delete mode 100644 sql/issue_212_notification_settings_upgrade.sql delete mode 100644 sql/issue_226_news_upgrade.sql delete mode 100644 sql/issue_61_news_table.sql delete mode 100644 sql/issue_70_transactions_upgrade.sql diff --git a/sql/issue_144_notification_upgrade.sql b/sql/issue_144_notification_upgrade.sql deleted file mode 100644 index 73985979..00000000 --- a/sql/issue_144_notification_upgrade.sql +++ /dev/null @@ -1,17 +0,0 @@ -CREATE TABLE IF NOT EXISTS `notifications` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `type` varchar(25) NOT NULL, - `data` varchar(255) NOT NULL, - `active` tinyint(1) NOT NULL DEFAULT '1', - `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `account_id` int(10) unsigned DEFAULT NULL, - PRIMARY KEY (`id`), - KEY `active` (`active`), - KEY `data` (`data`), - KEY `account_id` (`account_id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; -CREATE TABLE IF NOT EXISTS `notification_settings` ( - `type` varchar(15) NOT NULL, - `account_id` int(11) NOT NULL, - `active` tinyint(1) NOT NULL DEFAULT '0' -) ENGINE=InnoDB DEFAULT CHARSET=utf8; diff --git a/sql/issue_147_accounts_upgrade.sql b/sql/issue_147_accounts_upgrade.sql deleted file mode 100644 index ecff0f6f..00000000 --- a/sql/issue_147_accounts_upgrade.sql +++ /dev/null @@ -1,2 +0,0 @@ -ALTER TABLE `accounts` ADD `is_locked` BOOLEAN NOT NULL DEFAULT FALSE AFTER `email` ; -ALTER TABLE `accounts` CHANGE `admin` `is_admin` BOOLEAN NOT NULL DEFAULT FALSE ; diff --git a/sql/issue_148_transactions_upgrade.sql b/sql/issue_148_transactions_upgrade.sql deleted file mode 100644 index 2c0a47a7..00000000 --- a/sql/issue_148_transactions_upgrade.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE `transactions` CHANGE `type` `type` ENUM( 'Credit', 'Debit_MP', 'Debit_AP', 'Donation', 'Fee', 'Orphan_Credit', 'Orphan_Fee', 'Orphan_Donation', 'Bonus', 'Orphan_Bonus' ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; diff --git a/sql/issue_167_settings_upgrade.sql b/sql/issue_167_settings_upgrade.sql deleted file mode 100644 index dff0378a..00000000 --- a/sql/issue_167_settings_upgrade.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE `settings` CHANGE `setting` `name` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL ; diff --git a/sql/issue_182_accounts_upgrade.sql b/sql/issue_182_accounts_upgrade.sql deleted file mode 100644 index 62266515..00000000 --- a/sql/issue_182_accounts_upgrade.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE `accounts` ADD `failed_logins` INT( 5 ) UNSIGNED NULL DEFAULT '0' AFTER `is_locked` ; diff --git a/sql/issue_203_transactions_upgrade.sql b/sql/issue_203_transactions_upgrade.sql deleted file mode 100644 index 13d19701..00000000 --- a/sql/issue_203_transactions_upgrade.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE `transactions` CHANGE `type` `type` ENUM( 'Credit', 'Debit_MP', 'Debit_AP', 'Donation', 'Fee', 'Orphan_Credit', 'Orphan_Fee', 'Orphan_Donation', 'Credit_PPS', 'Fee_PPS', 'Donation_PPS', 'TXFee', 'Bonus') CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL ; diff --git a/sql/issue_212_notification_settings_upgrade.sql b/sql/issue_212_notification_settings_upgrade.sql deleted file mode 100644 index 1a07b26e..00000000 --- a/sql/issue_212_notification_settings_upgrade.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE `notification_settings` ADD `id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST ; diff --git a/sql/issue_226_news_upgrade.sql b/sql/issue_226_news_upgrade.sql deleted file mode 100644 index dabc48bb..00000000 --- a/sql/issue_226_news_upgrade.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE `news` ADD `time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `content` ; diff --git a/sql/issue_61_news_table.sql b/sql/issue_61_news_table.sql deleted file mode 100644 index 70b26331..00000000 --- a/sql/issue_61_news_table.sql +++ /dev/null @@ -1,21 +0,0 @@ -SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; -SET time_zone = "+00:00"; - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; - - -CREATE TABLE IF NOT EXISTS `news` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `account_id` int(10) unsigned NOT NULL, - `header` varchar(255) NOT NULL, - `content` text NOT NULL, - `active` tinyint(1) NOT NULL DEFAULT '0', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/sql/issue_70_transactions_upgrade.sql b/sql/issue_70_transactions_upgrade.sql deleted file mode 100644 index 90561397..00000000 --- a/sql/issue_70_transactions_upgrade.sql +++ /dev/null @@ -1 +0,0 @@ -ALTER TABLE `transactions` CHANGE `type` `type` ENUM( 'Credit', 'Debit_MP', 'Debit_AP', 'Donation', 'Fee', 'Orphan_Credit', 'Orphan_Fee', 'Orphan_Donation', 'Bonus', 'Orphan_Bonus', 'Credit_PPS', 'Debit_PPS', 'Donation_PPS' ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL;