mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-12 23:35:50 +00:00
removed more skeema stuff relate to the community db
This commit is contained in:
parent
46be5c2d3c
commit
9660a883c3
@ -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
|
||||
|
||||
@ -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}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user