Skip to content

Commit

Permalink
Merge pull request #1587 from GiganticMinecraft/modify_sql_init
Browse files Browse the repository at this point in the history
modify sql init
  • Loading branch information
outductor authored Dec 22, 2023
2 parents cbf324e + adee484 commit c6683d0
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@ spec:
args:
- sh
- -c
- mysqldump -umcserver -p${DB_PASSWORD} -h192.168.2.186 --databases seichiassist
flyway_managed_schema > /docker-entrypoint-initdb.d/seichiassist.sql
- |
mysqldump -umcserver -p${DB_PASSWORD} -h192.168.2.186 --databases seichiassist flyway_managed_schema --ignore-table=seichiassist.playerdata --ignore-table=seichiassist.mine_stack > /docker-entrypoint-initdb.d/00_seichiassist-without-playerdaya.sql
mysqldump -umcserver -p${DB_PASSWORD} -h192.168.2.186 --databases seichiassist --tables playerdata --where 'lastquit > "2022-01-01 00:00:00"' > /docker-entrypoint-initdb.d/01_playerdata.sql
mysqldump -umcserver -p${DB_PASSWORD} -h192.168.2.186 --databases seichiassist --tables mine_stack --where 'amount != 0' > /docker-entrypoint-initdb.d/02_mine_stack.sql
volumeMounts:
- mountPath: /docker-entrypoint-initdb.d
name: sqldump-volume
Expand Down

0 comments on commit c6683d0

Please sign in to comment.