File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ BEGIN
127
127
],
128
128
longdescs_reactions => [
129
129
qw(
130
- id comment_id user_id
130
+ id comment_id user_id reaction
131
131
)
132
132
],
133
133
longdescs_tags => [
@@ -248,7 +248,7 @@ BEGIN
248
248
else {
249
249
print " dropping $table \n " ;
250
250
drop_referencing($table );
251
- $dbh -> do(" DROP TABLE IF EXISTS $ table" );
251
+ $dbh -> do(' DROP TABLE IF EXISTS ' . $dbh -> quote_identifier( $ table) );
252
252
}
253
253
}
254
254
@@ -320,12 +320,12 @@ sub drop_referencing {
320
320
321
321
# drop the index
322
322
my $rows
323
- = $dbh -> selectall_arrayref(" SHOW INDEX FROM $ table WHERE Column_name = ?" ,
323
+ = $dbh -> selectall_arrayref(' SHOW INDEX FROM ' . $dbh -> quote_identifier( $ table) . ' WHERE Column_name = ?' ,
324
324
{Slice => {}}, $column );
325
325
foreach my $fk (@$rows ) {
326
326
print " dropping index $fk ->{Table}.$fk ->{Key_name}\n " ;
327
327
$dbh -> do(" ALTER TABLE "
328
- . $dbh -> quote_identifier($fk -> {table })
328
+ . $dbh -> quote_identifier($fk -> {Table })
329
329
. " DROP INDEX $fk ->{Key_name}" );
330
330
}
331
331
}
You can’t perform that action at this time.
0 commit comments