Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend token symbol type varchar(255) -> text #6162

Merged
merged 1 commit into from
Sep 26, 2022

Conversation

vbaranov
Copy link
Member

@vbaranov vbaranov commented Sep 26, 2022

Motivation

2022-09-26T12:03:33.059 [error] Task #PID<0.1157.39> started from Indexer.Fetcher.Token terminating
** (Postgrex.Error) ERROR 22001 (string_data_right_truncation) value too long for type character varying(255)
    (ecto_sql 3.7.1) lib/ecto/adapters/sql.ex:760: Ecto.Adapters.SQL.raise_sql_call_error/1
    (ecto 3.7.1) lib/ecto/repo/schema.ex:744: Ecto.Repo.Schema.apply/4
    (ecto 3.7.1) lib/ecto/repo/schema.ex:367: anonymous fn/15 in Ecto.Repo.Schema.do_insert/4
    (explorer 4.1.8) lib/explorer/chain.ex:4853: anonymous fn/5 in Explorer.Chain.update_token/2
    (ecto 3.7.1) lib/ecto/multi.ex:716: Ecto.Multi.apply_operation/5
    (elixir 1.13.1) lib/enum.ex:2396: Enum."-reduce/3-lists^foldl/2-0-"/3
    (ecto 3.7.1) lib/ecto/multi.ex:690: anonymous fn/5 in Ecto.Multi.apply_operations/5
    (ecto_sql 3.7.1) lib/ecto/adapters/sql.ex:1021: anonymous fn/3 in Ecto.Adapters.SQL.checkout_or_transaction/4
Function: &Indexer.BufferedTask.log_run/1
    Args: [%{batch: [%Explorer.Chain.Hash{byte_count: 20, bytes: <<175, 187, 17, 28, 237, 44, 90, 176, 124, 112, 62, 65, 232, 68, 22, 128, 16, 77, 160, 162>>}], ...

Changelog

Extend token symbol type varchar(255) -> text

Checklist for your Pull Request (PR)

@vbaranov vbaranov merged commit 59b3438 into master Sep 26, 2022
@vbaranov vbaranov deleted the vb-extend-token-symbol-type branch September 26, 2022 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant