Skip to content

Commit

Permalink
Bugfix for migrate script
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Turchin committed Sep 7, 2011
1 parent 08a6f44 commit 4dd3003
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions utils/MIGRATE_100_TO_200.pl
Expand Up @@ -13,14 +13,14 @@ sub convert {
local $/;
my $orig = $_ = <F>;
close(F);

do_convert();

if ($orig ne $_) {
print "$File::Find::name\n";
open(local *F, ">", $File::Find::name); binmode(F);
print F $_;
close(F);
close(F);
}
}

Expand Down Expand Up @@ -53,8 +53,8 @@ sub do_convert {

# wrappers

s/DB_Pgsql_Type_EmptyNull/DB_Type_Wrapper_EmptyNull/sg;
s/DB_Pgsql_Type_Test_Type_EmptyNullTest/DB_Type_Test_Wrapper_EmptyNullTest/sg;
s/DB_Pgsql_Type_EmptyNull/DB_Type_Wrapper_EmptyToNull/sg;
s/DB_Pgsql_Type_Test_Type_EmptyNullTest/DB_Type_Test_Wrapper_EmptyToNullTest/sg;

s/DB_Pgsql_Type_Length/DB_Type_Wrapper_Length/sg;
s/DB_Pgsql_Type_Test_Type_LengthTest/DB_Type_Test_Rwapper_LengthTest/sg;
Expand Down Expand Up @@ -107,4 +107,4 @@ sub do_convert {
# utils

s/DB_Pgsql_Type_Test_Util_TypeTestCase/DB_Type_Test_Util_TypeTestCase/sg;
}
}

0 comments on commit 4dd3003

Please sign in to comment.