Commit 335d1210 authored by Vasilii Iakliushin's avatar Vasilii Iakliushin Committed by Adam Hegyi

Extend users table with "static_object_token_encrypted" field

parent a898ae32
# 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 (
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
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