forked from quarkusio/quarkus
-
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.
Support for multi tenancy column discriminator quarkusio#28644
- Loading branch information
Showing
18 changed files
with
845 additions
and
19 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
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
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
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
15 changes: 15 additions & 0 deletions
15
...rm-tenancy/datasource/src/main/resources/database/discriminator/V1.0.0__create_fruits.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,15 @@ | ||
CREATE TABLE known_fruits | ||
( | ||
tenantId VARCHAR(40), | ||
id INT, | ||
name VARCHAR(40) | ||
); | ||
CREATE SEQUENCE known_fruits_id_seq START WITH 7; | ||
INSERT INTO known_fruits(tenantId, id, name) VALUES ('base', 1, 'Cherry'); | ||
INSERT INTO known_fruits(tenantId, id, name) VALUES ('base', 2, 'Apple'); | ||
INSERT INTO known_fruits(tenantId, id, name) VALUES ('base', 3, 'Banana'); | ||
|
||
INSERT INTO known_fruits(tenantId, id, name) VALUES ('mycompany', 4, 'Avocado'); | ||
INSERT INTO known_fruits(tenantId, id, name) VALUES ('mycompany', 5, 'Apricots'); | ||
INSERT INTO known_fruits(tenantId, id, name) VALUES ('mycompany', 6, 'Blackberries'); | ||
|
Oops, something went wrong.