fineract-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nikpawar89 <...@git.apache.org>
Subject [GitHub] incubator-fineract pull request #189: address_module
Date Mon, 01 Aug 2016 12:11:48 GMT
Github user nikpawar89 commented on a diff in the pull request:

    https://github.com/apache/incubator-fineract/pull/189#discussion_r72967384
  
    --- Diff: fineract-provider/src/main/resources/sql/migrations/core_db/v312_address_module_tables_metadat.sql
---
    @@ -0,0 +1,127 @@
    +--
    +-- Licensed to the Apache Software Foundation (ASF) under one
    +-- or more contributor license agreements. See the NOTICE file
    +-- distributed with this work for additional information
    +-- regarding copyright ownership. The ASF licenses this file
    +-- to you under the Apache License, Version 2.0 (the
    +-- "License"); you may not use this file except in compliance
    +-- with the License. You may obtain a copy of the License at
    +--
    +-- http://www.apache.org/licenses/LICENSE-2.0
    +--
    +-- Unless required by applicable law or agreed to in writing,
    +-- software distributed under the License is distributed on an
    +-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    +-- KIND, either express or implied. See the License for the
    +-- specific language governing permissions and limitations
    +-- under the License.
    +--
    +
    +--code inserts
    +INSERT INTO `m_code` (`id`, `code_name`, `is_system_defined`) VALUES (150, 'INDIAN STATES',
0);
    +INSERT INTO `m_code` (`id`, `code_name`, `is_system_defined`) VALUES (151, 'COUNTRY ID',
0);
    +INSERT INTO `m_code` (`id`, `code_name`, `is_system_defined`) VALUES (152, 'ADDRESS TYPE
ID', 0);
    +
    +--add new column in portfolio
    +alter table `m_portfolio_command_source` add column `status` TINYINT(4) NULL DEFAULT
NULL;
    +
    +--configuration
    +INSERT INTO `c_configuration` (`id`, `name`, `value`, `date_value`, `enabled`, `is_trap_door`,
`description`) VALUES (29, 'Enable-Address', NULL, NULL, 1, 0, NULL);
    +
    +--add address table
    +CREATE TABLE `m_address` (
    +	`id` BIGINT(20) NOT NULL AUTO_INCREMENT,
    +	`street` VARCHAR(100) NULL DEFAULT NULL,
    +	`address_line_1` VARCHAR(100) NULL DEFAULT NULL,
    +	`address_line_2` VARCHAR(100) NULL DEFAULT NULL,
    +	`address_line_3` VARCHAR(100) NULL DEFAULT NULL,
    +	`town_village` VARCHAR(100) NULL DEFAULT NULL,
    +	`city` VARCHAR(100) NULL DEFAULT NULL,
    +	`county_district` VARCHAR(100) NULL DEFAULT NULL,
    +	`state_province_id` INT(11) NULL DEFAULT NULL,
    +	`country_id` INT(11) NULL DEFAULT NULL,
    +	`postal_code` VARCHAR(10) NULL DEFAULT NULL,
    +	`latitude` DECIMAL(10,8) UNSIGNED NULL DEFAULT '0.00000000',
    +	`longitude` DECIMAL(10,8) UNSIGNED NULL DEFAULT '0.00000000',
    +	`created_by` VARCHAR(100) NULL DEFAULT NULL,
    +	`created_on` DATE NULL DEFAULT NULL,
    +	`updated_by` VARCHAR(100) NULL DEFAULT NULL,
    +	`updated_on` DATE NULL DEFAULT NULL,
    +	PRIMARY KEY (`id`),
    +	INDEX `address_fields_codefk1` (`state_province_id`),
    +	INDEX `address_fields_codefk2` (`country_id`),
    +	CONSTRAINT `address_fields_codefk1` FOREIGN KEY (`state_province_id`) REFERENCES `m_code_value`
(`id`),
    +	CONSTRAINT `address_fields_codefk2` FOREIGN KEY (`country_id`) REFERENCES `m_code_value`
(`id`)
    +)
    +COLLATE='utf8_general_ci'
    +ENGINE=InnoDB
    +AUTO_INCREMENT=20
    --- End diff --
    
    changed to 1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message