Commit bfe34fe2 authored by Adam Hegyi's avatar Adam Hegyi

Merge branch '199716_extend_users_table_with_static_object_token_encrypted' into 'master'

Extend users table with "static_object_token_encrypted" field

See merge request gitlab-org/gitlab!75426
parents a7b7f5ae 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
# 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
a00ce6a11c7671b6d2efe47e3859afaec72c437fdf5383b990ee09cf14081c9b
\ No newline at end of file
31d5fa3caff916a485f26b6834e37037455068cdcf502802196bf1d663716f49
\ No newline at end of file
...@@ -20416,7 +20416,9 @@ CREATE TABLE users ( ...@@ -20416,7 +20416,9 @@ CREATE TABLE users (
last_name character varying(255), last_name character varying(255),
static_object_token character varying(255), static_object_token character varying(255),
role smallint, 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 CREATE SEQUENCE users_id_seq
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment