Skip to content

Commit

Permalink
Merge pull request #10 from Shauren/patch-1
Browse files Browse the repository at this point in the history
Don't strip SQL SECURITY from CREATE VIEW
  • Loading branch information
jackpoz authored Sep 27, 2024
2 parents 0c9864d + 2350cea commit 4eda1eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions release-tdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,15 @@ mysql -uroot -D characters -e "update \`worldstates\` set \`value\`=0;"
mysqldump -uroot auth --default-character-set='utf8mb4' --routines --hex-blob --result-file sql/base/auth_database.sql
sed -i -e 's$VALUES ($VALUES\n($g' sql/base/auth_database.sql
sed -i -e 's$),($),\n($g' sql/base/auth_database.sql
sed -i -e 's/DEFINER=[^*]*\*/\*/' sql/base/auth_database.sql
sed -i -e 's/DEFINER=.* \(SQL SECURITY\)/\1/' sql/base/auth_database.sql
sed -i -e 's/utf8mb4_0900_ai_ci/utf8mb4_unicode_ci/g' sql/base/auth_database.sql
mysqldump -uroot characters --default-character-set='utf8mb4' --routines --hex-blob --result-file sql/base/characters_database.sql
sed -i -e 's$VALUES ($VALUES\n($g' sql/base/characters_database.sql
sed -i -e 's$),($),\n($g' sql/base/characters_database.sql
sed -i -e 's/DEFINER=[^*]*\*/\*/' sql/base/characters_database.sql
sed -i -e 's/DEFINER=.* \(SQL SECURITY\)/\1/' sql/base/characters_database.sql
sed -i -e 's/utf8mb4_0900_ai_ci/utf8mb4_unicode_ci/g' sql/base/characters_database.sql
mysqldump -uroot world --default-character-set='utf8mb4' --routines --no-data --result-file sql/base/dev/world_database.sql
sed -i -e 's/DEFINER=[^*]*\*/\*/' sql/base/dev/world_database.sql
sed -i -e 's/DEFINER=.* \(SQL SECURITY\)/\1/' sql/base/dev/world_database.sql
sed -i -e 's/utf8mb4_0900_ai_ci/utf8mb4_unicode_ci/g' sql/base/dev/world_database.sql
git add sql

Expand Down

0 comments on commit 4eda1eb

Please sign in to comment.