-
Notifications
You must be signed in to change notification settings - Fork 40
Update README and modify port configuration in the env files for both profiles. #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
|
||
server.port=8095 | ||
# DataSource settings: set here your own configurations for the database | ||
|
||
spring.datasource.url=<Enter AMRIT DB_1097_IDENTITY URL here> | ||
spring.datasource.username=<Enter your AMRIT DB_1097_IDENTITY username> | ||
spring.datasource.password=<Enter your AMRIT DB_1097_IDENTITY password> | ||
spring.datasource.url=jdbc:mysql://localhost:3306/db_identity | ||
spring.datasource.username=root | ||
spring.datasource.password=1234 | ||
spring.datasource.driver-class-name=com.mysql.jdbc.Driver | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
server.port=8094 | ||
# DataSource settings: set here your own configurations for the database | ||
spring.datasource.url=jdbc:mysql://localhost:3306/db_identity | ||
spring.datasource.url=jdbc:mysql://localhost:3306/db_iemr | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. π‘ Codebase verification Database name inconsistency detected - likely an error The change to
Please revert the database name change in π Analysis chainVerify database migration requirements. The database URL has been changed from
π Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check database configuration consistency across files
# and look for any migration scripts or documentation
# Check for database names in configuration files
echo "Checking database configurations..."
rg -l "db_identity|db_iemr" --type properties
# Look for migration scripts
echo -e "\nChecking for migration scripts..."
fd -e sql -e java -e xml --full-path "migration|flyway|liquibase"
Length of output: 314 Script: #!/bin/bash
# Search for database configurations and related files more thoroughly
echo "Checking all property and YAML files for database configurations..."
find . -type f \( -name "*.properties" -o -name "*.yml" \) -exec grep -l "datasource\|jdbc:\|db_identity\|db_iemr" {} \;
echo -e "\nChecking for SQL and database-related files..."
find . -type f \( -name "*.sql" -o -name "*database*" -o -name "*schema*" \) 2>/dev/null
echo -e "\nChecking for database configuration in Java files..."
find . -type f -name "*.java" -exec grep -l "DataSource\|JdbcTemplate\|EntityManagerFactory" {} \;
Length of output: 1249 Script: #!/bin/bash
echo "Examining database URLs in all property files..."
for file in ./src/main/environment/*.properties ./src/main/resources/application.properties; do
echo -e "\n=== $file ==="
grep -i "datasource.url\|jdbc:" "$file" || true
done
echo -e "\nChecking IdentityService.java for database references..."
grep -A 5 -B 5 "DataSource\|JdbcTemplate\|EntityManagerFactory" ./src/main/java/com/iemr/common/identity/service/IdentityService.java
Length of output: 5681 |
||
spring.datasource.username=root | ||
spring.datasource.password=1234 | ||
spring.datasource.driver-class-name=com.mysql.jdbc.Driver |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π οΈ Refactor suggestion
Replace hardcoded credentials with placeholders in example file.
Since this is an example properties file, it should use placeholders instead of hardcoded credentials. This helps prevent accidental commits of real credentials and provides better guidance for users.
Apply this diff:
Additional recommendations:
com.mysql.cj.jdbc.Driver
)π Committable suggestion