mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fixed import.sh and implemented new optional workflow for pendings sql
Now devs can create sql for their pull requests that will be automatically imported and _decorated_ by a protection system and avoid to multiple import same queries
This commit is contained in:
7
data/sql/updates/pending_db_auth/create_sql.sh
Normal file
7
data/sql/updates/pending_db_auth/create_sql.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )/" && pwd )";
|
||||
|
||||
rev=$( date +%s%N );
|
||||
|
||||
echo "INSERT INTO version_db_auth(\`sql_rev\`) VALUES ('"$rev"');" > "$CUR_PATH/rev_"$rev".sql" && echo "File created";
|
||||
7
data/sql/updates/pending_db_characters/create_sql.sh
Normal file
7
data/sql/updates/pending_db_characters/create_sql.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )/" && pwd )";
|
||||
|
||||
rev=$( date +%s%N );
|
||||
|
||||
echo "INSERT INTO version_db_characters(\`sql_rev\`) VALUES ('"$rev"');" > "$CUR_PATH/rev_"$rev".sql" && echo "File created";
|
||||
7
data/sql/updates/pending_db_world/create_sql.sh
Normal file
7
data/sql/updates/pending_db_world/create_sql.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CUR_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )/" && pwd )";
|
||||
|
||||
rev=$( date +%s%N );
|
||||
|
||||
echo "INSERT INTO version_db_world(\`sql_rev\`) VALUES ('"$rev"');" > "$CUR_PATH/rev_"$rev".sql" && echo "File created";
|
||||
Reference in New Issue
Block a user