mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-03 01:23:22 +02:00
Major PostgreSQL update
This commit is contained in:
parent
b7c78e7eb5
commit
0cec56475a
3 changed files with 78 additions and 105 deletions
|
@ -125,7 +125,9 @@ Now you need to update PostgreSQL Admin User Password:
|
|||
sudo -u postgres psql
|
||||
postgres=#
|
||||
postgres=# ALTER USER postgres PASSWORD 'demoPassword';
|
||||
postgres=# CREATE DATABASE registry;
|
||||
postgres=# CREATE SCHEMA registry;
|
||||
postgres=# CREATE SCHEMA registryTransaction;
|
||||
postgres=# CREATE SCHEMA registryAudit;
|
||||
postgres=# \q
|
||||
```
|
||||
|
||||
|
|
|
@ -166,7 +166,13 @@ EOF
|
|||
psql --version
|
||||
echo "Configuring PostgreSQL..."
|
||||
sudo -u postgres psql -c "ALTER USER postgres PASSWORD '$DB_PASSWORD';"
|
||||
sudo -u postgres psql -c "CREATE DATABASE registry;"
|
||||
sudo -u postgres psql -c "CREATE SCHEMA registry;"
|
||||
sudo -u postgres psql -c "CREATE SCHEMA registryTransaction;"
|
||||
sudo -u postgres psql -c "CREATE SCHEMA registryAudit;"
|
||||
|
||||
echo "Importing SQL file into PostgreSQL..."
|
||||
psql -U postgres -d postgres -f /opt/registry/database/registry.postgres.sql
|
||||
echo "SQL import completed."
|
||||
fi
|
||||
|
||||
mkdir /usr/share/adminer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue