Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a46aa197
Commit
a46aa197
authored
Jun 29, 2021
by
Andreas Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Quote function name
parent
0b857c7e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
db/post_migrate/20210622041846_finalize_push_event_payloads_bigint_conversion.rb
...2041846_finalize_push_event_payloads_bigint_conversion.rb
+1
-1
No files found.
db/post_migrate/20210622041846_finalize_push_event_payloads_bigint_conversion.rb
View file @
a46aa197
...
@@ -42,7 +42,7 @@ class FinalizePushEventPayloadsBigintConversion < ActiveRecord::Migration[6.1]
...
@@ -42,7 +42,7 @@ class FinalizePushEventPayloadsBigintConversion < ActiveRecord::Migration[6.1]
# regenerate the execution plan for it. This is to avoid type mismatch errors like
# regenerate the execution plan for it. This is to avoid type mismatch errors like
# "type of parameter 15 (bigint) does not match that when preparing the plan (integer)"
# "type of parameter 15 (bigint) does not match that when preparing the plan (integer)"
function_name
=
Gitlab
::
Database
::
UnidirectionalCopyTrigger
.
on_table
(
TABLE_NAME
).
name
(
:event_id
,
:event_id_convert_to_bigint
)
function_name
=
Gitlab
::
Database
::
UnidirectionalCopyTrigger
.
on_table
(
TABLE_NAME
).
name
(
:event_id
,
:event_id_convert_to_bigint
)
execute
"ALTER FUNCTION
#{
function_name
}
RESET ALL"
execute
"ALTER FUNCTION
#{
quote_table_name
(
function_name
)
}
RESET ALL"
# Swap defaults
# Swap defaults
change_column_default
TABLE_NAME
,
:event_id
,
nil
change_column_default
TABLE_NAME
,
:event_id
,
nil
...
...
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