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
335d1210
Commit
335d1210
authored
Dec 14, 2021
by
Vasilii Iakliushin
Committed by
Adam Hegyi
Dec 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extend users table with "static_object_token_encrypted" field
parent
a898ae32
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
1 deletion
+34
-1
db/migrate/20211126142200_add_encrypted_static_object_token.rb
...grate/20211126142200_add_encrypted_static_object_token.rb
+16
-0
db/migrate/20211126142354_add_text_limit_to_encrypted_static_object_token.rb
...142354_add_text_limit_to_encrypted_static_object_token.rb
+13
-0
db/schema_migrations/20211126142200
db/schema_migrations/20211126142200
+1
-0
db/schema_migrations/20211126142354
db/schema_migrations/20211126142354
+1
-0
db/structure.sql
db/structure.sql
+3
-1
No files found.
db/migrate/20211126142200_add_encrypted_static_object_token.rb
0 → 100644
View file @
335d1210
# frozen_string_literal: true
class
AddEncryptedStaticObjectToken
<
Gitlab
::
Database
::
Migration
[
1.0
]
enable_lock_retries!
def
up
# rubocop:disable Migration/AddLimitToTextColumns
# limit is added in 20211126142354_add_text_limit_to_encrypted_static_object_token
add_column
:users
,
:static_object_token_encrypted
,
:text
# rubocop:disable Migration/AddColumnsToWideTables
# rubocop:enable Migration/AddLimitToTextColumns
end
def
down
remove_column
:users
,
:static_object_token_encrypted
end
end
db/migrate/20211126142354_add_text_limit_to_encrypted_static_object_token.rb
0 → 100644
View file @
335d1210
# frozen_string_literal: true
class
AddTextLimitToEncryptedStaticObjectToken
<
Gitlab
::
Database
::
Migration
[
1.0
]
disable_ddl_transaction!
def
up
add_text_limit
:users
,
:static_object_token_encrypted
,
255
end
def
down
remove_text_limit
:users
,
:static_object_token_encrypted
end
end
db/schema_migrations/20211126142200
0 → 100644
View file @
335d1210
a00ce6a11c7671b6d2efe47e3859afaec72c437fdf5383b990ee09cf14081c9b
\ No newline at end of file
db/schema_migrations/20211126142354
0 → 100644
View file @
335d1210
31d5fa3caff916a485f26b6834e37037455068cdcf502802196bf1d663716f49
\ No newline at end of file
db/structure.sql
View file @
335d1210
...
...
@@ -20416,7 +20416,9 @@ CREATE TABLE users (
last_name character varying(255),
static_object_token character varying(255),
role smallint,
user_type smallint
user_type smallint,
static_object_token_encrypted text,
CONSTRAINT check_7bde697e8e CHECK ((char_length(static_object_token_encrypted) <= 255))
);
CREATE SEQUENCE users_id_seq
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