Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PB-986 Cleanup obsolete SQL management scripts #490

Merged
merged 4 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,16 +430,7 @@ With the following commands it is possible to get a proper state of the database

## Initial Setup up the RDS database and the user

Right now the initial setup on the RDS database for the stagings *dev*, *int* and *prod* can be obtained
with the helper script `scripts/setup_rds_db.sh`. The credentials come from `ssm`. To
setup the RDS database on int, run following command (the PROFILE variable denotes in what account the
parameters are stored):

```bash
summon -p `ssm` -D APP_ENV=int -D PROFILE=swisstopo-bgdi-dev scripts/setup_rds_db.sh
```

**Note:** The script won't delete the existing database.
The RDS database and user are managed by terraform. See [the service-stac module for int](https://github.com/geoadmin/infra-terraform-bgdi/blob/master/tf/aws/swisstopo-bgdi/systems-int/data/service-stac/db.tf) for example.

## Deploying the project and continuous integration

Expand Down
46 changes: 0 additions & 46 deletions scripts/setup_rds_db.sh

This file was deleted.

6 changes: 0 additions & 6 deletions scripts/sql/create_db.sql

This file was deleted.

13 changes: 0 additions & 13 deletions scripts/sql/create_user.sql

This file was deleted.

17 changes: 0 additions & 17 deletions scripts/sql/install_postgis.sql

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ this query will load random data into:
you can set the number of collections and the number of items for each collection.
see inline comments

NOTE #########
As of 2025, this script is outdated. Several new model fields have been added.
If you want to use this, please update the script beforehand.

*/


Expand Down
11 changes: 0 additions & 11 deletions secrets.yml

This file was deleted.

Loading