Skip to content

Commit

Permalink
Remove extra cleaning done by importing schema before
Browse files Browse the repository at this point in the history
  • Loading branch information
JeGoi committed Oct 15, 2024
1 parent afcface commit afef922
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions addons/functions/database.functions
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@ function import_mysqldump() {
sed -i 's/DELETE IGNORE FROM `action`;//g' $dump_file
sed -i 's/DELETE IGNORE FROM `activation`;//g' $dump_file

# We need to drop the data from all the tables that contain data in our bare schema
# This is because the mysqldump import already contains this data
mysql ${mariadb_args} $db_name -e 'delete ignore from node_category;'
mysql ${mariadb_args} $db_name -e 'delete ignore from password;'
mysql ${mariadb_args} $db_name -e 'delete ignore from person;'
mysql ${mariadb_args} $db_name -e 'delete ignore from pf_version;'
mysql ${mariadb_args} $db_name -e 'delete ignore from radreply;'
mysql ${mariadb_args} $db_name -e 'delete ignore from sms_carrier;'
else
echo "Dump file includes triggers and procedures"
fi
Expand Down

0 comments on commit afef922

Please sign in to comment.