Skip to content

fix(schema): backport config_tags_relation.id bigserial→bigint to 2.2.x-develop and v2-develop#109

Closed
Copilot wants to merge 1 commit intodevelopfrom
copilot/fix-config-tags-relation-id
Closed

fix(schema): backport config_tags_relation.id bigserial→bigint to 2.2.x-develop and v2-develop#109
Copilot wants to merge 1 commit intodevelopfrom
copilot/fix-config-tags-relation-id

Conversation

Copy link
Contributor

Copilot AI commented Mar 3, 2026

Both 2.2.x-develop and v2-develop still carry "id" bigserial NOT NULL in config_tags_relation — the fix from #106 was only merged to develop. Both branches share the identical pre-fix file (SHA bb4d03bc).

Change

Single-line fix in nacos-datasource-plugin-ext/nacos-postgresql-datasource-plugin-ext/src/main/resources/schema/nacos-pg.sql:

-- config_tags_relation: id references config_info.id; PK is nid, not id
- "id" bigserial NOT NULL,
+ "id" bigint NOT NULL,

Status

  • Verified: both 2.2.x-develop (50ceaa01) and v2-develop (f260f41c) confirmed unfixed (file SHA bb4d03bc)
  • Fix validated: one-line diff, results in file SHA e08864f on both branches (identical to For#47, fix(schema): change id column type from bigserial to bigint in config… #106 outcome)
  • Two fix branches prepared locally (copilot/fix-config-tags-2.2.x-develop, copilot/fix-config-tags-v2-develop); need to be pushed and PRs opened with base=2.2.x-develop and base=v2-develop respectively

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/nacos-group/nacos-plugin
    • Triggering command: /usr/bin/curl curl -s -o /dev/null -w %{http_code} -H Authorization: ****** REDACTED (http block)
  • https://api.github.com/repos/nacos-group/nacos-plugin/git/refs/heads/2.2.x-develop
    • Triggering command: /usr/bin/curl curl -s -H Authorization: ****** REDACTED (http block)
  • https://api.github.com/repos/nacos-group/nacos-plugin/git/refs/heads/v2-develop
    • Triggering command: /usr/bin/curl curl -s -H Authorization: ****** REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

目标仓库:nacos-group/nacos-plugin

需求:

  1. 基于已存在的修复 PR For#47, fix(schema): change id column type from bigserial to bigint in config… #106https://github.com/nacos-group/nacos-plugin/pull/106),将同等修复同步到以下两个分支:

    • 2.2.x-develop(该分支已创建,当前 HEAD 显示为 commit 50ceaa0,且 nacos-pg.sql 中 config_tags_relation.id 仍是 bigserial)
    • v2-develop(即 2.x-develop)
  2. 修复内容(与 PR For#47, fix(schema): change id column type from bigserial to bigint in config… #106 一致):

    • 文件:nacos-datasource-plugin-ext/nacos-postgresql-datasource-plugin-ext/src/main/resources/schema/nacos-pg.sql
    • 修改:将表 config_tags_relation 的列定义从
      "id" bigserial NOT NULL,
      改为
      "id" bigint NOT NULL,
  3. 为每个目标分支分别创建一个新的 PR(不要直接推送到受保护分支)。

    • PR A: base 为 2.2.x-develop
    • PR B: base 为 v2-develop
  4. 验证:

上下文参考:

注意:

  • 遵循仓库提交规范,commit message 建议沿用:fix(schema): change config_tags_relation.id from bigserial to bigint
  • 若 v2-develop 已经包含该修复,则无需重复提交 PR(但要在结果中说明已包含,无需修复)。

This pull request was created from Copilot chat.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@lingma-agents
Copy link

lingma-agents bot commented Mar 3, 2026

无法获取合并请求的变更信息,代码审查流程终止。

Copilot AI changed the title [WIP] Fix id column type for config_tags_relation in nacos-pg.sql fix(schema): backport config_tags_relation.id bigserial→bigint to 2.2.x-develop and v2-develop Mar 3, 2026
@KomachiSion KomachiSion closed this Mar 3, 2026
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.

2 participants