Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
osticket
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
docker
osticket
Commits
b7091391
Commit
b7091391
authored
9 years ago
by
Jared Hancock
Browse files
Options
Downloads
Patches
Plain Diff
upgrade: Fix error emails from upgrade, actually drop fields
parent
7865eee5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/upgrader/streams/core/0d6099a6-98ad7d55.cleanup.sql
+4
-4
4 additions, 4 deletions
include/upgrader/streams/core/0d6099a6-98ad7d55.cleanup.sql
include/upgrader/streams/core/36f6b328-5cd0a25a.cleanup.sql
+13
-2
13 additions, 2 deletions
include/upgrader/streams/core/36f6b328-5cd0a25a.cleanup.sql
with
17 additions
and
6 deletions
include/upgrader/streams/core/0d6099a6-98ad7d55.cleanup.sql
+
4
−
4
View file @
b7091391
...
...
@@ -17,8 +17,8 @@ SET @s = (SELECT IF(
AND
table_schema
=
DATABASE
()
AND
column_name
=
'updated'
)
>
0
,
"
SELECT 1
"
,
"
ALTER TABLE `%TABLE_PREFIX%team_member` DROP `updated`
"
"
ALTER TABLE `%TABLE_PREFIX%team_member` DROP `updated`
"
,
"
SELECT 1
"
));
PREPARE
stmt
FROM
@
s
;
EXECUTE
stmt
;
...
...
@@ -31,8 +31,8 @@ SET @s = (SELECT IF(
AND
table_schema
=
DATABASE
()
AND
column_name
=
'views'
)
>
0
,
"
SELECT 1
"
,
"
ALTER TABLE `%TABLE_PREFIX%faq` DROP `views`, DROP `score`
"
"
ALTER TABLE `%TABLE_PREFIX%faq` DROP `views`, DROP `score`
"
,
"
SELECT 1
"
));
PREPARE
stmt
FROM
@
s
;
EXECUTE
stmt
;
...
...
This diff is collapsed.
Click to expand it.
include/upgrader/streams/core/36f6b328-5cd0a25a.cleanup.sql
+
13
−
2
View file @
b7091391
ALTER
TABLE
`%TABLE_PREFIX%thread`
DROP
COLUMN
`tid`
;
-- Drop `tid` from thread (if it exists)
SET
@
s
=
(
SELECT
IF
(
(
SELECT
COUNT
(
*
)
FROM
INFORMATION_SCHEMA
.
COLUMNS
WHERE
table_name
=
'%TABLE_PREFIX%thread'
AND
table_schema
=
DATABASE
()
AND
column_name
=
'tid'
)
>
0
,
"ALTER TABLE `%TABLE_PREFIX%thread` DROP COLUMN `tid`"
,
"SELECT 1"
));
PREPARE
stmt
FROM
@
s
;
EXECUTE
stmt
;
ALTER
TABLE
`%TABLE_PREFIX%thread_entry`
DROP
COLUMN
`ticket_id`
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment