diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index eb7841923..e32ffba01 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -22,7 +22,7 @@ spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.jpa.hibernate.use-new-id-generator-mappings= false #set to 'none' to .ddl-auto if you want to create mysql tables from "schema.sql" files instead of from entities -spring.jpa.hibernate.ddl-auto = create-drop +spring.jpa.hibernate.ddl-auto = update spring.jpa.generate-ddl=true spring.jpa.show-sql=true #tells hibernate where to find initial data to import into mysql if .ddl-auto method is used diff --git a/src/main/resources/db/import.sql b/src/main/resources/db/import.sql index 00079b8ef..fd31d71a9 100644 --- a/src/main/resources/db/import.sql +++ b/src/main/resources/db/import.sql @@ -8,14 +8,14 @@ -- Dumping data for table `account` -- -INSERT INTO `account` VALUES (1,'1234567890','CHECKING',10000,'2004-01-22',NULL,.2,'091000022',1),(2,'3333333333','SAVINGS',25000,'2004-01-22',NULL,.85,'091000022',1); -INSERT INTO `account` VALUES (3,'1111111111','CHECKING',10000,'2004-01-22',NULL,.2,'091000022',2),(4,'4444444444','SAVINGS',25000,'2004-01-22',NULL,.85,'091000022',2); -INSERT INTO `account` VALUES (5,'2222222222','CHECKING',0,'2004-01-22',NULL,.2,'091000022',3); +INSERT INTO `account` VALUES (1,'1234567890','CHECKING',999999999999,'2004-01-22',NULL,.2,'091000022',1); +# INSERT INTO `account` VALUES (3,'1111111111','CHECKING',10000,'2004-01-22',NULL,.2,'091000022',2),(4,'4444444444','SAVINGS',25000,'2004-01-22',NULL,.85,'091000022',2); +# INSERT INTO `account` VALUES (5,'2222222222','CHECKING',0,'2004-01-22',NULL,.2,'091000022',3); -- -- Dumping data for table `login` -- -INSERT INTO `login` VALUES (1,'$2a$10$DM98Ynu/prVcywurljSHSOko73BKJb29RFW3vCGFYT9DBAW6Jd1W2','user1'),(2,'$2a$10$DM98Ynu/prVcywurljSHSOko73BKJb29RFW3vCGFYT9DBAW6Jd1W2','user2'); +INSERT INTO `login` VALUES (1,'$2a$10$DM98Ynu/prVcywurljSHSOko73BKJb29RFW3vCGFYT9DBAW6Jd1W2','user1'); INSERT INTO `login` VALUES (3,'$2a$10$DM98Ynu/prVcywurljSHSOko73BKJb29RFW3vCGFYT9DBAW6Jd1W2','user3'); -- -- Dumping data for table `transaction_history` @@ -27,7 +27,7 @@ INSERT INTO `login` VALUES (3,'$2a$10$DM98Ynu/prVcywurljSHSOko73BKJb29RFW3vCGFYT -- Dumping data for table `customer` -- -INSERT INTO `customer` VALUES (1,'2012-05-05','tom@gmail.com','Peggy','Patel','G','5122264785','435435345',1),(2,'2012-05-05','john@gmail.com','John','Doe','G','5122264785','435435345',2); +INSERT INTO `customer` VALUES (1,'2012-05-05','tom@gmail.com','Peggy','Patel','G','5122264785','435435345',1); INSERT INTO `customer` VALUES (3,'2012-05-05','tom@gmail.com','Tom','Walter','G','5122264785','435435345',3); -- /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; @@ -36,5 +36,5 @@ INSERT INTO `customer` VALUES (3,'2012-05-05','tom@gmail.com','Tom','Walter','G' -- Dumping data for table `address` -- -INSERT INTO `address` VALUES (1,'Bear','123 A st','Second Line','DE','19801'),(2,'Philadelphia','200 B st','Second Line','Pennsylvania','19148'); +INSERT INTO `address` VALUES (1,'Bear','123 A st','Second Line','DE','19801'); INSERT INTO `address` VALUES (3,'Austin','123 A st','Second Line','Texas','19147'); \ No newline at end of file