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
e55abb13
Commit
e55abb13
authored
May 27, 2020
by
Sean McGivern
Committed by
Adam Hegyi
May 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove trial_ends_on from namespaces
parent
0a98de1f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
3 deletions
+28
-3
db/post_migrate/20200408132152_remove_namespaces_trial_ends_on.rb
...migrate/20200408132152_remove_namespaces_trial_ends_on.rb
+27
-0
db/structure.sql
db/structure.sql
+1
-3
No files found.
db/post_migrate/20200408132152_remove_namespaces_trial_ends_on.rb
0 → 100644
View file @
e55abb13
# frozen_string_literal: true
class
RemoveNamespacesTrialEndsOn
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
remove_concurrent_index_by_name
:namespaces
,
'index_namespaces_on_trial_ends_on'
with_lock_retries
do
remove_column
:namespaces
,
:trial_ends_on
end
end
def
down
unless
column_exists?
(
:namespaces
,
:trial_ends_on
)
with_lock_retries
do
add_column
:namespaces
,
:trial_ends_on
,
:datetime_with_timezone
end
end
add_concurrent_index
:namespaces
,
:trial_ends_on
,
using:
'btree'
,
where:
'trial_ends_on IS NOT NULL'
end
end
db/structure.sql
View file @
e55abb13
...
@@ -4201,7 +4201,6 @@ CREATE TABLE public.namespaces (
...
@@ -4201,7 +4201,6 @@ CREATE TABLE public.namespaces (
cached_markdown_version
integer
,
cached_markdown_version
integer
,
project_creation_level
integer
,
project_creation_level
integer
,
runners_token
character
varying
,
runners_token
character
varying
,
trial_ends_on
timestamp
with
time
zone
,
file_template_project_id
integer
,
file_template_project_id
integer
,
saml_discovery_token
character
varying
,
saml_discovery_token
character
varying
,
runners_token_encrypted
character
varying
,
runners_token_encrypted
character
varying
,
...
@@ -10153,8 +10152,6 @@ CREATE UNIQUE INDEX index_namespaces_on_runners_token_encrypted ON public.namesp
...
@@ -10153,8 +10152,6 @@ CREATE UNIQUE INDEX index_namespaces_on_runners_token_encrypted ON public.namesp
CREATE
INDEX
index_namespaces_on_shared_and_extra_runners_minutes_limit
ON
public
.
namespaces
USING
btree
(
shared_runners_minutes_limit
,
extra_shared_runners_minutes_limit
);
CREATE
INDEX
index_namespaces_on_shared_and_extra_runners_minutes_limit
ON
public
.
namespaces
USING
btree
(
shared_runners_minutes_limit
,
extra_shared_runners_minutes_limit
);
CREATE
INDEX
index_namespaces_on_trial_ends_on
ON
public
.
namespaces
USING
btree
(
trial_ends_on
)
WHERE
(
trial_ends_on
IS
NOT
NULL
);
CREATE
INDEX
index_namespaces_on_type_partial
ON
public
.
namespaces
USING
btree
(
type
)
WHERE
(
type
IS
NOT
NULL
);
CREATE
INDEX
index_namespaces_on_type_partial
ON
public
.
namespaces
USING
btree
(
type
)
WHERE
(
type
IS
NOT
NULL
);
CREATE
INDEX
index_non_requested_project_members_on_source_id_and_type
ON
public
.
members
USING
btree
(
source_id
,
source_type
)
WHERE
((
requested_at
IS
NULL
)
AND
((
type
)::
text
=
'ProjectMember'
::
text
));
CREATE
INDEX
index_non_requested_project_members_on_source_id_and_type
ON
public
.
members
USING
btree
(
source_id
,
source_type
)
WHERE
((
requested_at
IS
NULL
)
AND
((
type
)::
text
=
'ProjectMember'
::
text
));
...
@@ -13838,6 +13835,7 @@ COPY "schema_migrations" (version) FROM STDIN;
...
@@ -13838,6 +13835,7 @@ COPY "schema_migrations" (version) FROM STDIN;
20200407222647
20200407222647
20200408110856
20200408110856
20200408125046
20200408125046
20200408132152
20200408133211
20200408133211
20200408153842
20200408153842
20200408154331
20200408154331
...
...
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