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

searchableByのマイグレーションを修正 #529

Merged

Conversation

penginn-net
Copy link
Collaborator

@penginn-net penginn-net commented Nov 5, 2024

What

Why

query: START TRANSACTION

query: ALTER TABLE "user" ADD "searchableBy" "public"."user_searchableby_enum"

query failed: ALTER TABLE "user" ADD "searchableBy" "public"."user_searchableby_enum"

error: error: type "public.user_searchableby_enum" does not exist

Migration "AddSearchable1729457336777" failed, error: type "public.user_searchableby_enum" does not exist

query: ROLLBACK

Error during migration run:

QueryFailedError: type "public.user_searchableby_enum" does not exist

    at PostgresQueryRunner.query (/cherrypick/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:219:19)

    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

    at async AddSearchable1729457336777.up (file:///cherrypick/packages/backend/migration/1729457336777-AddSearchable.js:9:3)

    at async MigrationExecutor.executePendingMigrations (/cherrypick/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/typeorm/migration/MigrationExecutor.js:225:17)

    at async DataSource.runMigrations (/cherrypick/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/typeorm/data-source/DataSource.js:265:35)

    at async Object.handler (/cherrypick/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) {

  query: 'ALTER TABLE "user" ADD "searchableBy" "public"."user_searchableby_enum"',

  parameters: undefined,

  driverError: error: type "public.user_searchableby_enum" does not exist

      at /cherrypick/node_modules/.pnpm/[email protected]/node_modules/pg/lib/client.js:526:17

      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

      at async PostgresQueryRunner.query (/cherrypick/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:184:25)

      at async AddSearchable1729457336777.up (file:///cherrypick/packages/backend/migration/1729457336777-AddSearchable.js:9:3)

      at async MigrationExecutor.executePendingMigrations (/cherrypick/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/typeorm/migration/MigrationExecutor.js:225:17)

      at async DataSource.runMigrations (/cherrypick/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/typeorm/data-source/DataSource.js:265:35)

      at async Object.handler (/cherrypick/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/typeorm/commands/MigrationRunCommand.js:68:13) {

    length: 116,

    severity: 'ERROR',

    code: '42704',

    detail: undefined,

    hint: undefined,

    position: '39',

    internalPosition: undefined,

    internalQuery: undefined,

    where: undefined,

    schema: undefined,

    table: undefined,

    column: undefined,

    dataType: undefined,

    constraint: undefined,

    file: 'parse_type.c',

    line: '270',

    routine: 'typenameType'

  },

  length: 116,

  severity: 'ERROR',

  code: '42704',

  detail: undefined,

  hint: undefined,

  position: '39',

  internalPosition: undefined,

  internalQuery: undefined,

  where: undefined,

  schema: undefined,

  table: undefined,

  column: undefined,

  dataType: undefined,

  constraint: undefined,

  file: 'parse_type.c',

  line: '270',

  routine: 'typenameType'

}

 ELIFECYCLE  Command failed with exit code 1.

 ELIFECYCLE  Command failed with exit code 1.

 ELIFECYCLE  Command failed with exit code 1.

Additional info (optional)

Checklist

  • コントリビューションガイドを読みました( Read the contribution guide)
  • ローカル環境で動作しました(Test working in a local environment)
  • (必要なら)CHANGELOG_YOJO.mdの更新((If needed) Update CHANGELOG_YOJO.md)
  • (必要なら)テストの追加((If possible) Add tests)

Copy link
Contributor

github-actions bot commented Nov 5, 2024

이 PR에 의한 api.json 차이

차이점은 여기에서 볼 수 있음

Get diff files from Workflow Page

Copy link

codecov bot commented Nov 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 38.71%. Comparing base (d1ad89e) to head (a0d8418).
Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff              @@
##           develop     #529       +/-   ##
============================================
- Coverage    62.24%   38.71%   -23.53%     
============================================
  Files          886     1672      +786     
  Lines       109207   220844   +111637     
  Branches      2707     3730     +1023     
============================================
+ Hits         67975    85509    +17534     
- Misses       41211   134724    +93513     
- Partials        21      611      +590     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@penginn-net penginn-net merged commit b2b9c79 into yojo-art:develop Nov 5, 2024
26 of 27 checks passed
@kozakura913 kozakura913 added this to the yojo1.1.0 milestone Nov 5, 2024
@penginn-net penginn-net deleted the fix-searchableby-migration branch December 7, 2024 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants