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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
c1db00cc
Commit
c1db00cc
authored
Dec 11, 2004
by
gerv%gerv.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 264662: Don't delete old chart data. We'll document the problems instead.…
Bug 264662: Don't delete old chart data. We'll document the problems instead. Patch by gerv; r,a=justdave.
parent
5bf71403
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
checksetup.pl
checksetup.pl
+5
-11
No files found.
checksetup.pl
View file @
c1db00cc
...
...
@@ -3912,18 +3912,12 @@ if (TableExists("user_series_map")) {
# auto-incrementing sequence (Oracle again).
RenameField
(
'series_categories'
,
'category_id'
,
'id'
);
# We nuke all the chart data and re-import it, partly because there were
# several data corruption bugs in the initial cut of the code, and partly
# because otherwise migration is too complex.
print
"Deleting possibly-corrupt new-chart data "
.
"(it will be re-migrated) ...\n"
unless
$silent
;
$dbh
->
do
(
"DELETE FROM series"
);
$dbh
->
do
(
"DELETE FROM series_data"
);
$dbh
->
do
(
"DELETE FROM series_categories"
);
# No need to migrate the "publicness" from user_series_map, as we've just
# deleted all the series!
AddField
(
"series"
,
"public"
,
"tinyint(1) not null default 0"
);
# Migrate public-ness across from user_series_map to new field
$dbh
->
do
(
"UPDATE series SET series.public = 1 "
.
"WHERE series.series_id = user_series_map.series_id "
.
" AND user_series_map.user_id = 0"
);
$dbh
->
do
(
"DROP TABLE user_series_map"
);
}
...
...
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