-- V27: encrypted executable Task input (Story 4.3). alter table tasks add column if not exists executable_input_ciphertext text; alter table tasks add column if not exists executable_input_key_version text; alter table tasks add column if not exists executable_input_master_key_epoch bigint; alter table tasks add constraint tasks_executable_input_key_version_check check ( executable_input_ciphertext is null or (executable_input_key_version is not null and octet_length(executable_input_key_version) between 1 and 64) ); alter table tasks add column if not exists target_executable_input_ciphertext text; alter table tasks add column if not exists target_executable_input_key_version text; alter table tasks add column if not exists target_executable_input_master_key_epoch bigint; alter table tasks add constraint tasks_executable_input_epoch_check check ( executable_input_ciphertext is null or (executable_input_master_key_epoch is not null and executable_input_master_key_epoch >= 1) );