-
Notifications
You must be signed in to change notification settings - Fork 50
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
Added missing flyway scripts in billing service. #427
base: master
Are you sure you want to change the base?
Conversation
WalkthroughThe recent updates introduce new SQL scripts to create and modify tables and sequences within the billing service's database schema. These changes include creating tables for Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 2
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (5)
- business-services/billing-service/src/main/resources/db/migration/main/V20170630150444__egbs_taxperiod_business_service_base_create_ddl.sql (1 hunks)
- business-services/billing-service/src/main/resources/db/migration/main/V20170630150618__egbs_glcodemaster_taxHeadMaster_base_ddl.sql (1 hunks)
- business-services/billing-service/src/main/resources/db/migration/main/V20170714160131__egbs_taxperiod_alter_ddl.sql (1 hunks)
- business-services/billing-service/src/main/resources/db/migration/main/V20170717105007__egbs_glcode_taxheadmaster_update_ddl.sql (1 hunks)
- business-services/billing-service/src/main/resources/db/migration/main/V20171010161459__egbs_collected_receipts.sql (1 hunks)
Files skipped from review due to trivial changes (3)
- business-services/billing-service/src/main/resources/db/migration/main/V20170630150444__egbs_taxperiod_business_service_base_create_ddl.sql
- business-services/billing-service/src/main/resources/db/migration/main/V20170714160131__egbs_taxperiod_alter_ddl.sql
- business-services/billing-service/src/main/resources/db/migration/main/V20171010161459__egbs_collected_receipts.sql
Additional comments not posted (6)
business-services/billing-service/src/main/resources/db/migration/main/V20170717105007__egbs_glcode_taxheadmaster_update_ddl.sql (2)
3-20
: The recreatedegbs_taxheadmaster
table appears correctly defined with all necessary columns and constraints.
26-39
: The recreatedegbs_glcodemaster
table appears correctly defined with all necessary columns and constraints.business-services/billing-service/src/main/resources/db/migration/main/V20170630150618__egbs_glcodemaster_taxHeadMaster_base_ddl.sql (4)
1-2
: The sequences foregbs_taxHeadMaster
andegbs_taxHeadMastercode
are correctly defined.
4-21
: Theegbs_taxheadmaster
table is correctly defined with all necessary columns and constraints.
27-27
: The sequence foregbs_glcodemaster
is correctly defined.
29-42
: Theegbs_glcodemaster
table is correctly defined with all necessary columns and constraints.
); | ||
|
||
|
||
DROP TABLE public.egbs_glcodemaster; |
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.
Tip
Codebase Verification
The identified SQL files do not contain any explicit backup or migration strategies for the egbs_glcodemaster
table. They only show the creation and subsequent dropping of the table without any data migration or backup steps.
V20170630150618__egbs_glcodemaster_taxHeadMaster_base_ddl.sql
creates theegbs_glcodemaster
table.V20170717105007__egbs_glcode_taxheadmaster_update_ddl.sql
drops and recreates theegbs_glcodemaster
table.
This indicates that there is no backup or migration strategy in place for the data in egbs_glcodemaster
before it is dropped.
Analysis chain
Verify data backup or migration strategy before dropping egbs_glcodemaster
.
Verify the presence of backup or migration strategies in the identified SQL files.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check for backup or migration scripts related to `egbs_glcodemaster`.
# Test: Search for backup or migration scripts. Expect: At least one script related to `egbs_glcodemaster`.
rg --type sql $'egbs_glcodemaster' --files-with-matches
Length of output: 316
Script:
#!/bin/bash
# Description: Inspect the identified SQL files for backup or migration strategies related to `egbs_glcodemaster`.
# Test: Display contents of the identified SQL files.
cat business-services/billing-service/src/main/resources/db/migration/main/V20170630150618__egbs_glcodemaster_taxHeadMaster_base_ddl.sql
cat business-services/billing-service/src/main/resources/db/migration/main/V20170717105007__egbs_glcode_taxheadmaster_update_ddl.sql
Length of output: 2566
@@ -0,0 +1,40 @@ | |||
DROP TABLE public.egbs_taxheadmaster; |
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.
Tip
Codebase Verification
The V20170717105007__egbs_glcode_taxheadmaster_update_ddl.sql
file drops and recreates the egbs_taxheadmaster
table without any explicit backup or migration strategy. This could lead to data loss.
business-services/billing-service/src/main/resources/db/migration/main/V20170717105007__egbs_glcode_taxheadmaster_update_ddl.sql
Analysis chain
Verify data backup or migration strategy before dropping egbs_taxheadmaster
.
Inspect the contents of the identified SQL files for backup or migration strategies.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Description: Check for backup or migration scripts related to `egbs_taxheadmaster`.
# Test: Search for backup or migration scripts. Expect: At least one script related to `egbs_taxheadmaster`.
rg --type sql $'egbs_taxheadmaster' --files-with-matches
Length of output: 317
Script:
#!/bin/bash
# Description: Inspect the contents of the identified SQL files for backup or migration strategies.
# Display the contents of the identified SQL files.
cat business-services/billing-service/src/main/resources/db/migration/main/V20170630150618__egbs_glcodemaster_taxHeadMaster_base_ddl.sql
cat business-services/billing-service/src/main/resources/db/migration/main/V20170717105007__egbs_glcode_taxheadmaster_update_ddl.sql
Length of output: 2566
Added missing flyway scripts in billing service from DIGIT-DEV repo.
Summary by CodeRabbit
New Features
Improvements
periodcycle
to theegbs_taxperiod
table for enhanced period tracking.Schema Updates
egbs_taxheadmaster
andegbs_glcodemaster
tables with additional columns and primary key constraints.