Skip to content

Commit

Permalink
Finish renaming X.Y.Z.sql -> X.Y.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
jrouzierinverse committed Jul 5, 2021
1 parent 09c94d9 commit 4061be7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ translation:
.PHONY: mysql-schema

mysql-schema:
ln -f -s /usr/local/pf/db/pf-schema-X.Y.Z.sql /usr/local/pf/db/pf-schema.sql;
ln -f -s /usr/local/pf/db/pf-schema-X.Y.sql /usr/local/pf/db/pf-schema.sql;

.PHONY: chown_pf

Expand Down
2 changes: 1 addition & 1 deletion addons/dev-helpers/bin/generator-data-access-layer.pl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ =head1 DESCRIPTION
our %OPTIONS = (
dbpass => 'packet',
dbuser => 'pf_smoke_tester',
schema => "$PF_DIR/db/pf-schema-X.Y.Z.sql",
schema => "$PF_DIR/db/pf-schema-X.Y.sql",
);

GetOptions(\%OPTIONS, 'dbpass=s', 'dbuser=s', 'schema=s');
Expand Down
4 changes: 2 additions & 2 deletions t/db/schema.t
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ use Test::More tests => 2; # last test to print
use Test::NoWarnings;

my $DB_NAME = 'PF_SCHEMA_TEST';
my $test_schema = "$install_dir/db/pf-schema-X.Y.Z.sql";
my $upgrade_schema = "$install_dir/db/upgrade-X.X.X-X.Y.Z.sql";
my $test_schema = "$install_dir/db/pf-schema-X.Y.sql";
my $upgrade_schema = "$install_dir/db/upgrade-X.X-X.Y.sql";

SKIP: {
skip ('No db pass set',1) unless exists $ENV{PF_TEST_DB_PASS};
Expand Down
4 changes: 2 additions & 2 deletions t/test_apply_schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ MYSQL="mysql -upf_smoke_tester -ppacket -h$HOST"

MYSQLDUMP="mysqldump -upf_smoke_tester -h$HOST --no-data -a --skip-comments --routines -ppacket"

CURRENT_SCHEMA="$PF_DIR/db/pf-schema-X.Y.Z.sql"
CURRENT_SCHEMA="$PF_DIR/db/pf-schema-X.Y.sql"

if [ -e "$CURRENT_SCHEMA" ]; then
UPGRADE_SCRIPT="$PF_DIR/db/upgrade-X.X.X-X.Y.Z.sql"
UPGRADE_SCRIPT="$PF_DIR/db/upgrade-X.X-X.Y.sql"
LAST_SCHEMA=$(ls $PF_DIR/db/pf-schema-[0-9]*sql | sort --version-sort -r | head -1)
else
CURRENT_SCHEMA="$PF_DIR/db/pf-schema.sql"
Expand Down

1 comment on commit 4061be7

@nqb
Copy link
Contributor

@nqb nqb commented on 4061be7 Jul 6, 2021

Choose a reason for hiding this comment

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

Thanks you @jrouzierinverse.

Related to #6378

Please sign in to comment.