Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Clarify Initialisation process #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kalabiyau
Copy link
Contributor

Can be useful to drop a line about why we have -le flag. It is clear after debug that it is to do with incomplete schema rollout. But one small comment could save next person couple of hours ;)

Can be useful to drop a line about why we have `-le` flag. It is clear after debug that it is to do with incomplete schema rollout. But one small comment could save next person couple of hours ;)
Copy link
Owner

@psi-4ward psi-4ward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would you like to reformulate your comment?

@@ -36,7 +36,8 @@ if $MYSQL_AUTOCONF ; then
# init database if necessary
echo "CREATE DATABASE IF NOT EXISTS $MYSQL_DB;" | $MYSQLCMD
MYSQLCMD="$MYSQLCMD $MYSQL_DB"


# -le flag is used to prevent usage of incompletely applied schema
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not correct. The SQL command returns the count of the tables and -le 1 stands for less-or-equal.
So a comment like Check if $MYSQL_DB has tabes would fit better

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants