Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
0e3c836c
Commit
0e3c836c
authored
Jul 25, 2002
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 67950b - quick fixes. Patch by gerv.
parent
f71149e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
checksetup.pl
checksetup.pl
+8
-9
No files found.
checksetup.pl
View file @
0e3c836c
...
...
@@ -3025,17 +3025,17 @@ if (!GetFieldDef("bugs", "alias")) {
# Move quips to the db.
my
$renamed_comments_file
=
0
;
if
(
GetFieldDef
(
"quips"
,
"quipid"
))
{
if
(
-
s
'data/comments'
&&
open
(
COMMENTS
,
"<data/comments"
))
{
if
(
-
e
'data/comments'
&&
open
(
COMMENTS
,
"<data/comments"
))
{
print
"Populating quips table from data/comments...\n"
;
while
(
<
COMMENTS
>
)
{
chomp
;
$dbh
->
do
(
"INSERT INTO quips (quip) VALUES ("
.
$dbh
->
quote
(
$_
)
.
")"
);
}
print
"The data/comments file (used to store quips) has been
copied into the database, and the data/comments file
moved to data/comments.bak - you can delete this file
once you're satisfied the migration worked correctly.
\n"
;
print
"The data/comments file (used to store quips) has been
copied into the database, and the data/comments file
moved to data/comments.bak - you can delete this file
once you're satisfied the migration worked correctly.\n
\n"
;
close
COMMENTS
;
rename
(
"data/comments"
,
"data/comments.bak"
)
or
next
;
$renamed_comments_file
=
1
;
...
...
@@ -3043,11 +3043,10 @@ once you're satisfied the migration worked correctly.\n";
}
# Warn if data/comments.bak exists, as it should be deleted.
if
(
-
s
'data/comments.bak'
&&
!
$renamed_comments_file
)
{
print
"
Please note the data/comments.bak file can be removed as it's
no longer used.
\n"
;
if
(
-
e
'data/comments.bak'
&&
!
$renamed_comments_file
)
{
print
"
The data/comments.bak file can be removed, as it's no longer
used.\n
\n"
;
}
# If you had to change the --TABLE-- definition in any way, then add your
# differential change code *** A B O V E *** this comment.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment