From 6c4904d0541ec133a40e1ac6198b35d6fc863d8b Mon Sep 17 00:00:00 2001 From: Wahid Khan Date: Thu, 24 Aug 2017 10:57:25 +0530 Subject: [PATCH 01/11] adding ansible playbook in vprofile-project --- ansible/vprofile.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 ansible/vprofile.yml diff --git a/ansible/vprofile.yml b/ansible/vprofile.yml new file mode 100644 index 0000000..b04c6b7 --- /dev/null +++ b/ansible/vprofile.yml @@ -0,0 +1,39 @@ +--- +- hosts: tomcatservers + become: yes + + tasks: + + - name: Install EPEL-release + yum: name=epel-release state=present + + + - name: Install java_1.8 + yum: name=java-1.8.0-openjdk.x86_64 state=present + + - name: Install tomcat + yum: name=tomcat state=present + + + - name: Download latest VProfile.war file + get_url: url=http://:8081/nexus/content/repositories/VProfile-repo//{{time}}/{{build}}/{{gol_version}} dest=/tmp/ mode=755 + + - name: Stop tomcat service + service: name=tomcat state=stopped + + - name: Copy artifact to tomcat folder + shell: cp /tmp/{{gol_version}} /var/lib/tomcat/webapps + + - name: Delete link to existing gol version + file: path=/var/lib/tomcat/webapps/VProfile state=absent + + - name: Start tomcat service + service: name=tomcat state=started + - wait_for: path=/var/lib/tomcat/webapps/{{time}}-{{build}} + + - name: Link latest GOL version + file: src=/var/lib/tomcat/webapps/{{time}}-{{build}} dest=/var/lib/tomcat/webapps/VProfile state=link + + - name: Stop iptables + service: name=iptables state=stopped + From 2eae1a700127f77a06a9c82ad2e1ad86a3e7ab9b Mon Sep 17 00:00:00 2001 From: wkhanvisualpathit <30584908+wkhanvisualpathit@users.noreply.github.com> Date: Thu, 24 Aug 2017 11:35:37 +0530 Subject: [PATCH 02/11] updated vprofile.yml file for version change --- ansible/vprofile.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ansible/vprofile.yml b/ansible/vprofile.yml index b04c6b7..c8d6de6 100644 --- a/ansible/vprofile.yml +++ b/ansible/vprofile.yml @@ -1,7 +1,7 @@ --- - hosts: tomcatservers become: yes - + gather_facts: False tasks: - name: Install EPEL-release @@ -16,22 +16,22 @@ - name: Download latest VProfile.war file - get_url: url=http://:8081/nexus/content/repositories/VProfile-repo//{{time}}/{{build}}/{{gol_version}} dest=/tmp/ mode=755 + get_url: url=http://{{nexusip}}:8081/nexus/content/repositories/VProfile-repo/{{groupid}}/{{time}}/{{build}}/{{vprofile_version}} dest=/tmp/ mode=755 - name: Stop tomcat service service: name=tomcat state=stopped - name: Copy artifact to tomcat folder - shell: cp /tmp/{{gol_version}} /var/lib/tomcat/webapps + shell: cp /tmp/{{vprofile_version}} /var/lib/tomcat/webapps - - name: Delete link to existing gol version + - name: Delete link to existing vprofile version file: path=/var/lib/tomcat/webapps/VProfile state=absent - name: Start tomcat service service: name=tomcat state=started - wait_for: path=/var/lib/tomcat/webapps/{{time}}-{{build}} - - name: Link latest GOL version + - name: Link latest vprofile version file: src=/var/lib/tomcat/webapps/{{time}}-{{build}} dest=/var/lib/tomcat/webapps/VProfile state=link - name: Stop iptables From 5f45b41013745820ff8757439e0b727e49a37be1 Mon Sep 17 00:00:00 2001 From: Wahid Khan Date: Mon, 28 Aug 2017 10:55:09 +0530 Subject: [PATCH 03/11] adding DB dump --- src/main/resources/accountsdb.sql | 104 ++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 src/main/resources/accountsdb.sql diff --git a/src/main/resources/accountsdb.sql b/src/main/resources/accountsdb.sql new file mode 100644 index 0000000..d224d81 --- /dev/null +++ b/src/main/resources/accountsdb.sql @@ -0,0 +1,104 @@ +-- MySQL dump 10.13 Distrib 5.7.18, for Linux (x86_64) +-- +-- Host: localhost Database: accounts +-- ------------------------------------------------------ +-- Server version 5.7.18-0ubuntu0.16.10.1 + +/*!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 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; + +-- +-- Table structure for table `role` +-- + +DROP TABLE IF EXISTS `role`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `role` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(45) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `role` +-- + +LOCK TABLES `role` WRITE; +/*!40000 ALTER TABLE `role` DISABLE KEYS */; +INSERT INTO `role` VALUES (1,'ROLE_USER'); +/*!40000 ALTER TABLE `role` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `user` +-- + +DROP TABLE IF EXISTS `user`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `username` varchar(255) DEFAULT NULL, + `userEmail` varchar(255) DEFAULT NULL, + `password` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `user` +-- + +LOCK TABLES `user` WRITE; +/*!40000 ALTER TABLE `user` DISABLE KEYS */; +INSERT INTO `user` VALUES (4,'admin_vp','admin@visualpathit.com','$2a$11$DSEIKJNrgPjG.iCYUwErvOkREtC67mqzQ.ogkZbc/KOW1OPOpZfY6'); +/*!40000 ALTER TABLE `user` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `user_role` +-- + +DROP TABLE IF EXISTS `user_role`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user_role` ( + `user_id` int(11) NOT NULL, + `role_id` int(11) NOT NULL, + PRIMARY KEY (`user_id`,`role_id`), + KEY `fk_user_role_roleid_idx` (`role_id`), + CONSTRAINT `fk_user_role_roleid` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `fk_user_role_userid` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `user_role` +-- + +LOCK TABLES `user_role` WRITE; +/*!40000 ALTER TABLE `user_role` DISABLE KEYS */; +INSERT INTO `user_role` VALUES (4,1); +/*!40000 ALTER TABLE `user_role` ENABLE KEYS */; +UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!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 */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +-- Dump completed on 2017-08-28 10:50:51 From 17f57b7c5b7d51c465d659410bb2431c64e236d8 Mon Sep 17 00:00:00 2001 From: Wahid Khan Date: Thu, 14 Sep 2017 13:29:53 +0530 Subject: [PATCH 04/11] removing db.sql dump file --- src/main/resources/db.sql | 53 --------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 src/main/resources/db.sql diff --git a/src/main/resources/db.sql b/src/main/resources/db.sql deleted file mode 100644 index 0c073d1..0000000 --- a/src/main/resources/db.sql +++ /dev/null @@ -1,53 +0,0 @@ --- ---create a User with a password --- -CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; -GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost'; - -CREATE DATABASE IF NOT EXISTS `accounts`; -USE `accounts`; --- --- Table structure for table `role` --- - -DROP TABLE IF EXISTS `role`; -CREATE TABLE `role` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(45) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; - --- --- Dumping data for table `role` --- - -LOCK TABLES `role` WRITE; -INSERT INTO `role` VALUES (1,'ROLE_USER'); -UNLOCK TABLES; - --- --- Table structure for table `user` --- - -DROP TABLE IF EXISTS `user`; -CREATE TABLE `user` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `username` varchar(255) DEFAULT NULL, - `userEmail` varchar(255) DEFAULT NULL, - `password` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; - --- --- Table structure for table `user_role` --- - -DROP TABLE IF EXISTS `user_role`; -CREATE TABLE `user_role` ( - `user_id` int(11) NOT NULL, - `role_id` int(11) NOT NULL, - PRIMARY KEY (`user_id`,`role_id`), - KEY `fk_user_role_roleid_idx` (`role_id`), - CONSTRAINT `fk_user_role_roleid` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, - CONSTRAINT `fk_user_role_userid` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8; From 17572c0390b8fe4a82478587da12d4d1a850eefb Mon Sep 17 00:00:00 2001 From: Wahid Khan Date: Thu, 24 Aug 2017 10:57:25 +0530 Subject: [PATCH 05/11] adding ansible playbook in vprofile-project --- ansible/vprofile.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 ansible/vprofile.yml diff --git a/ansible/vprofile.yml b/ansible/vprofile.yml new file mode 100644 index 0000000..b04c6b7 --- /dev/null +++ b/ansible/vprofile.yml @@ -0,0 +1,39 @@ +--- +- hosts: tomcatservers + become: yes + + tasks: + + - name: Install EPEL-release + yum: name=epel-release state=present + + + - name: Install java_1.8 + yum: name=java-1.8.0-openjdk.x86_64 state=present + + - name: Install tomcat + yum: name=tomcat state=present + + + - name: Download latest VProfile.war file + get_url: url=http://:8081/nexus/content/repositories/VProfile-repo//{{time}}/{{build}}/{{gol_version}} dest=/tmp/ mode=755 + + - name: Stop tomcat service + service: name=tomcat state=stopped + + - name: Copy artifact to tomcat folder + shell: cp /tmp/{{gol_version}} /var/lib/tomcat/webapps + + - name: Delete link to existing gol version + file: path=/var/lib/tomcat/webapps/VProfile state=absent + + - name: Start tomcat service + service: name=tomcat state=started + - wait_for: path=/var/lib/tomcat/webapps/{{time}}-{{build}} + + - name: Link latest GOL version + file: src=/var/lib/tomcat/webapps/{{time}}-{{build}} dest=/var/lib/tomcat/webapps/VProfile state=link + + - name: Stop iptables + service: name=iptables state=stopped + From 8aa189c83b00932322d58cb26f78e6f1db706613 Mon Sep 17 00:00:00 2001 From: wkhanvisualpathit <30584908+wkhanvisualpathit@users.noreply.github.com> Date: Thu, 24 Aug 2017 11:35:37 +0530 Subject: [PATCH 06/11] updated vprofile.yml file for version change --- ansible/vprofile.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ansible/vprofile.yml b/ansible/vprofile.yml index b04c6b7..c8d6de6 100644 --- a/ansible/vprofile.yml +++ b/ansible/vprofile.yml @@ -1,7 +1,7 @@ --- - hosts: tomcatservers become: yes - + gather_facts: False tasks: - name: Install EPEL-release @@ -16,22 +16,22 @@ - name: Download latest VProfile.war file - get_url: url=http://:8081/nexus/content/repositories/VProfile-repo//{{time}}/{{build}}/{{gol_version}} dest=/tmp/ mode=755 + get_url: url=http://{{nexusip}}:8081/nexus/content/repositories/VProfile-repo/{{groupid}}/{{time}}/{{build}}/{{vprofile_version}} dest=/tmp/ mode=755 - name: Stop tomcat service service: name=tomcat state=stopped - name: Copy artifact to tomcat folder - shell: cp /tmp/{{gol_version}} /var/lib/tomcat/webapps + shell: cp /tmp/{{vprofile_version}} /var/lib/tomcat/webapps - - name: Delete link to existing gol version + - name: Delete link to existing vprofile version file: path=/var/lib/tomcat/webapps/VProfile state=absent - name: Start tomcat service service: name=tomcat state=started - wait_for: path=/var/lib/tomcat/webapps/{{time}}-{{build}} - - name: Link latest GOL version + - name: Link latest vprofile version file: src=/var/lib/tomcat/webapps/{{time}}-{{build}} dest=/var/lib/tomcat/webapps/VProfile state=link - name: Stop iptables From fd1099e5f5384acc15d8792782afe9974637d61b Mon Sep 17 00:00:00 2001 From: Wahid Khan Date: Mon, 28 Aug 2017 10:55:09 +0530 Subject: [PATCH 07/11] adding DB dump --- src/main/resources/accountsdb.sql | 104 ++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 src/main/resources/accountsdb.sql diff --git a/src/main/resources/accountsdb.sql b/src/main/resources/accountsdb.sql new file mode 100644 index 0000000..d224d81 --- /dev/null +++ b/src/main/resources/accountsdb.sql @@ -0,0 +1,104 @@ +-- MySQL dump 10.13 Distrib 5.7.18, for Linux (x86_64) +-- +-- Host: localhost Database: accounts +-- ------------------------------------------------------ +-- Server version 5.7.18-0ubuntu0.16.10.1 + +/*!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 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; + +-- +-- Table structure for table `role` +-- + +DROP TABLE IF EXISTS `role`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `role` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` varchar(45) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `role` +-- + +LOCK TABLES `role` WRITE; +/*!40000 ALTER TABLE `role` DISABLE KEYS */; +INSERT INTO `role` VALUES (1,'ROLE_USER'); +/*!40000 ALTER TABLE `role` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `user` +-- + +DROP TABLE IF EXISTS `user`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `username` varchar(255) DEFAULT NULL, + `userEmail` varchar(255) DEFAULT NULL, + `password` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `user` +-- + +LOCK TABLES `user` WRITE; +/*!40000 ALTER TABLE `user` DISABLE KEYS */; +INSERT INTO `user` VALUES (4,'admin_vp','admin@visualpathit.com','$2a$11$DSEIKJNrgPjG.iCYUwErvOkREtC67mqzQ.ogkZbc/KOW1OPOpZfY6'); +/*!40000 ALTER TABLE `user` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `user_role` +-- + +DROP TABLE IF EXISTS `user_role`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `user_role` ( + `user_id` int(11) NOT NULL, + `role_id` int(11) NOT NULL, + PRIMARY KEY (`user_id`,`role_id`), + KEY `fk_user_role_roleid_idx` (`role_id`), + CONSTRAINT `fk_user_role_roleid` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, + CONSTRAINT `fk_user_role_userid` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `user_role` +-- + +LOCK TABLES `user_role` WRITE; +/*!40000 ALTER TABLE `user_role` DISABLE KEYS */; +INSERT INTO `user_role` VALUES (4,1); +/*!40000 ALTER TABLE `user_role` ENABLE KEYS */; +UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!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 */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +-- Dump completed on 2017-08-28 10:50:51 From a5ef338c2cae266ae9db10373416128becc12ea7 Mon Sep 17 00:00:00 2001 From: Wahid Khan Date: Thu, 14 Sep 2017 13:29:53 +0530 Subject: [PATCH 08/11] removing db.sql dump file --- src/main/resources/db.sql | 53 --------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 src/main/resources/db.sql diff --git a/src/main/resources/db.sql b/src/main/resources/db.sql deleted file mode 100644 index 0c073d1..0000000 --- a/src/main/resources/db.sql +++ /dev/null @@ -1,53 +0,0 @@ --- ---create a User with a password --- -CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; -GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost'; - -CREATE DATABASE IF NOT EXISTS `accounts`; -USE `accounts`; --- --- Table structure for table `role` --- - -DROP TABLE IF EXISTS `role`; -CREATE TABLE `role` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(45) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; - --- --- Dumping data for table `role` --- - -LOCK TABLES `role` WRITE; -INSERT INTO `role` VALUES (1,'ROLE_USER'); -UNLOCK TABLES; - --- --- Table structure for table `user` --- - -DROP TABLE IF EXISTS `user`; -CREATE TABLE `user` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `username` varchar(255) DEFAULT NULL, - `userEmail` varchar(255) DEFAULT NULL, - `password` varchar(255) DEFAULT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; - --- --- Table structure for table `user_role` --- - -DROP TABLE IF EXISTS `user_role`; -CREATE TABLE `user_role` ( - `user_id` int(11) NOT NULL, - `role_id` int(11) NOT NULL, - PRIMARY KEY (`user_id`,`role_id`), - KEY `fk_user_role_roleid_idx` (`role_id`), - CONSTRAINT `fk_user_role_roleid` FOREIGN KEY (`role_id`) REFERENCES `role` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, - CONSTRAINT `fk_user_role_userid` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE -) ENGINE=InnoDB DEFAULT CHARSET=utf8; From 781b7c2fac0a1e57757ec78e7bf9b0909211e027 Mon Sep 17 00:00:00 2001 From: WKHAN <30584908+wkhanvisualpathit@users.noreply.github.com> Date: Thu, 14 Sep 2017 14:38:34 +0530 Subject: [PATCH 09/11] Updated README.md file for dump mention --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b4548e6..f138fcb 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,8 @@ MSQL DB Installation Steps for Linux ubuntu 14.04: - $ sudo apt-get install mysql-server Then look for the file : -- /src/main/resources/db.sql - -- db.sql file contents all step for DB table creation commands. +- /src/main/resources/accountsdb +- accountsdb.sql file is a mysql dump file.we have to import this dump to mysql db server +- > mysql -u -p accounts < accountsdb.sql From 02ff6c202d46efe0828da4f79400869705338018 Mon Sep 17 00:00:00 2001 From: WKHAN <30584908+wkhanvisualpathit@users.noreply.github.com> Date: Mon, 25 Sep 2017 17:13:44 +0530 Subject: [PATCH 10/11] updated pom.xml for change of version --- pom.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/pom.xml b/pom.xml index da1aeb6..a134c2b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,6 @@ com.visualpathit VProfile war - 1.0 Visualpathit VProfile Webapp http://maven.apache.org From ad26e65755e23ab1275ffafd19798e36ee3ba1b5 Mon Sep 17 00:00:00 2001 From: Wahid Khan Date: Tue, 26 Sep 2017 13:45:12 +0530 Subject: [PATCH 11/11] change for artefact version --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index da1aeb6..332e952 100644 --- a/pom.xml +++ b/pom.xml @@ -2,9 +2,9 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 4.0.0 com.visualpathit - VProfile + vprofile war - 1.0 + v1 Visualpathit VProfile Webapp http://maven.apache.org