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
a7710eb2
Commit
a7710eb2
authored
Jun 15, 2020
by
Gosia Ksionek
Committed by
Adam Hegyi
Jun 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove not null constraint from events table
Fix different file Add cr remarks Fix
parent
e01ee693
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
3 deletions
+38
-3
changelogs/unreleased/fix_deleting_user_psql_error_on_events_table_v2.yml
...eased/fix_deleting_user_psql_error_on_events_table_v2.yml
+5
-0
db/migrate/20200609142506_remove_not_null_constraint_from_weight_events_table.rb
...06_remove_not_null_constraint_from_weight_events_table.rb
+9
-0
db/migrate/20200609142507_remove_not_null_constraint_from_milestone_events_table.rb
...remove_not_null_constraint_from_milestone_events_table.rb
+9
-0
db/migrate/20200609142508_remove_not_null_constraint_from_state_events_table.rb
...508_remove_not_null_constraint_from_state_events_table.rb
+9
-0
db/structure.sql
db/structure.sql
+6
-3
No files found.
changelogs/unreleased/fix_deleting_user_psql_error_on_events_table_v2.yml
0 → 100644
View file @
a7710eb2
---
title
:
Remove not
null
constraint from events tables
merge_request
:
34190
author
:
type
:
fixed
db/migrate/20200609142506_remove_not_null_constraint_from_weight_events_table.rb
0 → 100644
View file @
a7710eb2
# frozen_string_literal: true
class
RemoveNotNullConstraintFromWeightEventsTable
<
ActiveRecord
::
Migration
[
6.0
]
DOWNTIME
=
false
def
change
change_column_null
:resource_weight_events
,
:user_id
,
true
end
end
db/migrate/20200609142507_remove_not_null_constraint_from_milestone_events_table.rb
0 → 100644
View file @
a7710eb2
# frozen_string_literal: true
class
RemoveNotNullConstraintFromMilestoneEventsTable
<
ActiveRecord
::
Migration
[
6.0
]
DOWNTIME
=
false
def
change
change_column_null
:resource_milestone_events
,
:user_id
,
true
end
end
db/migrate/20200609142508_remove_not_null_constraint_from_state_events_table.rb
0 → 100644
View file @
a7710eb2
# frozen_string_literal: true
class
RemoveNotNullConstraintFromStateEventsTable
<
ActiveRecord
::
Migration
[
6.0
]
DOWNTIME
=
false
def
change
change_column_null
:resource_state_events
,
:user_id
,
true
end
end
db/structure.sql
View file @
a7710eb2
...
...
@@ -5955,7 +5955,7 @@ ALTER SEQUENCE public.resource_label_events_id_seq OWNED BY public.resource_labe
CREATE
TABLE
public
.
resource_milestone_events
(
id
bigint
NOT
NULL
,
user_id
bigint
NOT
NULL
,
user_id
bigint
,
issue_id
bigint
,
merge_request_id
bigint
,
milestone_id
bigint
,
...
...
@@ -5975,7 +5975,7 @@ ALTER SEQUENCE public.resource_milestone_events_id_seq OWNED BY public.resource_
CREATE
TABLE
public
.
resource_state_events
(
id
bigint
NOT
NULL
,
user_id
bigint
NOT
NULL
,
user_id
bigint
,
issue_id
bigint
,
merge_request_id
bigint
,
created_at
timestamp
with
time
zone
NOT
NULL
,
...
...
@@ -5995,7 +5995,7 @@ ALTER SEQUENCE public.resource_state_events_id_seq OWNED BY public.resource_stat
CREATE
TABLE
public
.
resource_weight_events
(
id
bigint
NOT
NULL
,
user_id
bigint
NOT
NULL
,
user_id
bigint
,
issue_id
bigint
NOT
NULL
,
weight
integer
,
created_at
timestamp
with
time
zone
NOT
NULL
...
...
@@ -13967,6 +13967,9 @@ COPY "schema_migrations" (version) FROM STDIN;
20200608075553
20200608214008
20200609002841
20200609142506
20200609142507
20200609142508
20200609212701
\
.
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