Skip to content

Commit

Permalink
update postgres to v15.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter committed Oct 30, 2024
1 parent 419e4f4 commit 8f8f26c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
11 changes: 11 additions & 0 deletions apps/iatlas/postgres/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# iAtlas PostgreSQL

## Build the Docker image

```
nx build-image iatlas-postgres
```

## References

- https://github.com/generalui/postgres_docker
8 changes: 6 additions & 2 deletions apps/iatlas/postgres/docker-entrypoint-initdb.d/init-db.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
-- iatlas
CREATE USER iatlas WITH ENCRYPTED PASSWORD 'changeme';
-- sqlfluff:dialect:postgres
CREATE USER iatlas
WITH
ENCRYPTED PASSWORD 'changeme';

CREATE DATABASE iatlas;

GRANT ALL PRIVILEGES ON DATABASE iatlas TO iatlas;
4 changes: 2 additions & 2 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ module.exports = {
'**/*.sql': (filenames) => [
// Format files with Prettier
`prettier --write ${filenames.join(' ')}`,
// Lint files with SQLFluff
`poetry run sqlfluff lint ${filenames.join(' ')}`,
// Lint files with SQLFluff (conflicts with SQL formatter)
// `poetry run sqlfluff lint ${filenames.join(' ')}`,
],

'**/*': (filenames) => [
Expand Down

0 comments on commit 8f8f26c

Please sign in to comment.