-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sage-monorepo): integrate SQL formatter and linter (ARCH-296) (#…
- Loading branch information
1 parent
8a559fc
commit 9c1b90d
Showing
10 changed files
with
519 additions
and
10 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
9 changes: 7 additions & 2 deletions
9
apps/openchallenges/postgres/docker-entrypoint-initdb.d/init-db.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 |
---|---|---|
@@ -1,4 +1,9 @@ | ||
-- sqlfluff:dialect:postgres | ||
-- keycloak | ||
CREATE USER keycloak WITH ENCRYPTED PASSWORD 'changeme'; | ||
CREATE USER keycloak | ||
WITH | ||
ENCRYPTED PASSWORD 'changeme'; | ||
|
||
CREATE DATABASE keycloak; | ||
GRANT ALL PRIVILEGES ON DATABASE keycloak TO keycloak; | ||
|
||
GRANT all PRIVILEGES ON DATABASE keycloak TO keycloak; |
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,15 +1,17 @@ | ||
-- sqlfluff:dialect:mariadb | ||
-- @block list users | ||
|
||
SELECT * FROM challenge_user; | ||
SELECT | ||
* | ||
FROM | ||
challenge_user; | ||
|
||
-- @block delete user by id | ||
|
||
DELETE FROM challenge_user WHERE id=1; | ||
DELETE FROM challenge_user | ||
WHERE | ||
id = 1; | ||
|
||
-- @block delete all users | ||
|
||
DELETE FROM challenge_user; | ||
|
||
-- @block delete flyway schema history | ||
|
||
DELETE FROM flyway_schema_history; | ||
DELETE FROM flyway_schema_history; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.