update for recent demo server upgrade.

This commit is contained in:
Keith Woodlock
2012-09-11 12:29:20 +01:00
parent 940a665255
commit 587cb496b4
9 changed files with 65 additions and 29 deletions
@@ -1,14 +0,0 @@
insert into m_permission (group_enum, code, default_description, default_name)
values (0, "ALL_FUNCTIONS", "An application user will have permission to execute all tasks.", "ALL");
insert into m_permission (group_enum, code, default_description, default_name)
values (0, "ALL_FUNCTIONS_READ", "An application user will have permission to execute all read tasks.", "ALL READ");
/* give default super user role the all_functions permissions as well as current ones for now */
insert into m_role_permission (permission_id, role_id)
select p.id, 1
from m_permission p
where p.code = "ALL_FUNCTIONS";
@@ -1,5 +0,0 @@
ALTER TABLE `m_staff`
ADD COLUMN `createdby_id` BIGINT(20) NULL DEFAULT NULL,
ADD COLUMN`created_date` DATETIME NULL DEFAULT NULL,
ADD COLUMN`lastmodifiedby_id` BIGINT(20) NULL DEFAULT NULL,
ADD COLUMN`lastmodified_date` DATETIME NULL DEFAULT NULL;
@@ -1,4 +0,0 @@
ALTER TABLE `m_client`
ADD COLUMN `display_name` VARCHAR(100) NOT NULL AFTER `lastname`;
update m_client set display_name = concat_ws(' ',firstname,lastname);
@@ -1,3 +0,0 @@
alter table m_deposit_account drop column actual_maturity_date;
alter table m_deposit_account drop column projected_maturity_date;
alter table `m_deposit_account` add column `matured_on` datetime NULL DEFAULT NULL after actual_commencement_date;
@@ -1,2 +0,0 @@
alter table m_deposit_account drop column `matured_on`;
alter table `m_deposit_account` add column `matures_on_date` datetime NULL DEFAULT NULL after actual_commencement_date;
@@ -1,12 +0,0 @@
/* used to link MySql tables to Mifos X application tables for additional data needs */
DROP TABLE IF EXISTS `x_registered_table`;
CREATE TABLE `x_registered_table` (
`registered_table_name` varchar(50) NOT NULL,
`registered_table_label` varchar(80) NOT NULL,
`application_table_name` varchar(50) NOT NULL,
PRIMARY KEY (`registered_table_name`),
UNIQUE KEY `registered_table_label` (`registered_table_label`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@@ -1,3 +0,0 @@
ALTER TABLE `m_loan`
ADD COLUMN `loan_officer_id` BIGINT(20) NULL AFTER `fund_id`,
ADD CONSTRAINT `FK_m_loan_m_staff` FOREIGN KEY (`loan_officer_id`) REFERENCES `m_staff` (`id`);
@@ -1,9 +0,0 @@
ALTER TABLE `m_staff`
ADD COLUMN `office_id` BIGINT(20) NULL AFTER `id`,
ADD CONSTRAINT `FK_m_staff_m_office` FOREIGN KEY (`office_id`) REFERENCES `m_office` (`id`);
ALTER TABLE `m_staff`
ADD COLUMN `is_loan_officer` TINYINT(1) NOT NULL DEFAULT 0 AFTER `id`;
update m_staff set office_id=1;