-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: split database for write and read model.
add schema of read database to flyway Use root user on database for now.
- Loading branch information
1 parent
3693cfc
commit f90ca0d
Showing
7 changed files
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
spring: | ||
datasource: | ||
url: jdbc:mysql://localhost:3306/cqrs-meets-hexagonal | ||
username: SA | ||
username: root | ||
password: Aut0mat0rs! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
demo-transactions/src/main/resources/db/V0_0_3__account_balance_table.sql
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
demo-transactions/src/main/resources/db/read/V0_0_3__account_balance_table.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CREATE TABLE `cqrs-meets-hexagonal-read-db`.account_balance( | ||
iban VARCHAR(255) NOT NULL, | ||
balance DECIMAL NOT NULL, | ||
PRIMARY KEY (iban) | ||
); |
File renamed without changes.
File renamed without changes.