removed more skeema stuff relate to the community db

This commit is contained in:
Ulf Gebhardt 2021-08-22 23:59:05 +02:00
parent 46be5c2d3c
commit 9660a883c3
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
2 changed files with 1 additions and 23 deletions

View File

@ -1,9 +1,7 @@
#!/bin/bash
# For that to work skeema needed to be installed on system
# in login_server/skeema and community_server/db/skeema skeema configuration files need to be there also in the subfolders
# in login_server/skeema skeema configuration files need to be there also in the subfolders
# Update DB Schemas (only the schemas, not the data)
cd ../../login_server/skeema
skeema push --allow-unsafe
cd ../../community_server/db/skeema
skeema push --allow-unsafe

View File

@ -52,24 +52,4 @@ source $HOME/.gvm/scripts/gvm
gvm use go1.14.4
skeema push -p$LOGIN_DB_PASSWD
cd ../../..
# populate db of community-server
cd community_server/db/skeema
sudo cat << EOF > .skeema
[production]
flavor=mariadb:10.3.25
host=127.0.0.1
port=3306
user=$COMMUNITY_DB_USER
EOF
cd gradido_community
sudo cat << EOF > .skeema
default-character-set=utf8mb4
default-collation=utf8mb4_unicode_ci
schema=$COMMUNITY_DB_NAME
EOF
skeema push -p$COMMUNITY_DB_PASSWD
echo -e "${COLOR_YELLOW}Login-Server db password: $LOGIN_DB_PASSWD${COLOR_NONE}"
echo -e "${COLOR_YELLOW}Community-Server db password: $COMMUNITY_DB_PASSWD${COLOR_NONE}"