Skip to content

Commit 4d23430

Browse files
committed
feat: Add demo column to company table (main)
This commit adds a boolean 'demo' column to the company table in the database. The existing job to delete demo companies is commented out. The changeSet ID in the changelog is updated.
1 parent 5dc1572 commit 4d23430

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

api/src/main/java/com/grash/job/DeleteDemoCompaniesJob.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class DeleteDemoCompaniesJob implements Job {
1919

2020
@Override
2121
public void execute(JobExecutionContext context) {
22-
List<Company> companies = companyRepository.findByDemoTrue();
23-
companies.forEach(company -> companyService.delete(company.getId()));
22+
// List<Company> companies = companyRepository.findByDemoTrue();
23+
// companies.forEach(company -> companyService.delete(company.getId()));
2424
}
2525
}

api/src/main/resources/db/changelog/2025_09_13_1757719340_demo.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
66
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">
7-
<changeSet id="1757719378110-1" author="Ibrahima G. Coulibaly">
7+
<changeSet id="1757733791698-1" author="Ibrahima G. Coulibaly">
88
<addColumn tableName="company">
99
<column name="demo" type="boolean" defaultValue="false"/>
1010
</addColumn>

0 commit comments

Comments
 (0)