[GH-ISSUE #1343] [Bug] PostgreSQL Migration 1.9.0 fails: column "online" is of type integer but default expression is of type boolean #16846

Closed
opened 2026-05-18 17:05:54 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @Blacks-Army on GitHub (Aug 25, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/1343

Hi,
when running the 1.9.0 migration, the following error occurs:

Failed query: ALTER TABLE "exitNodes" ADD COLUMN "online" integer DEFAULT false NOT NULL;
error: column "online" is of type integer but default expression is of type boolean

Logs:

DrizzleQueryError: Failed query: ALTER TABLE "exitNodes" ADD COLUMN "online" integer DEFAULT false NOT NULL;
cause: error: column "online" is of type integer but default expression is of type boolean
code: '42804'

Expected behavior:
The migration should add the column successfully.

Originally created by @Blacks-Army on GitHub (Aug 25, 2025). Original GitHub issue: https://github.com/fosrl/pangolin/issues/1343 Hi, when running the 1.9.0 migration, the following error occurs: ```yaml Failed query: ALTER TABLE "exitNodes" ADD COLUMN "online" integer DEFAULT false NOT NULL; error: column "online" is of type integer but default expression is of type boolean ``` Logs: ```yaml DrizzleQueryError: Failed query: ALTER TABLE "exitNodes" ADD COLUMN "online" integer DEFAULT false NOT NULL; cause: error: column "online" is of type integer but default expression is of type boolean code: '42804' ``` Expected behavior: The migration should add the column successfully.
Author
Owner

@oschwartz10612 commented on GitHub (Aug 25, 2025):

Hey sorry about this I fixed the migration. I think you can just fix the
column manually in postgres to be a boolean and you should be good to
go. Let me know if you need help with that.

<!-- gh-comment-id:3221728815 --> @oschwartz10612 commented on GitHub (Aug 25, 2025): Hey sorry about this I fixed the migration. I think you can just fix the column manually in postgres to be a boolean and you should be good to go. Let me know if you need help with that.
Author
Owner

@Blacks-Army commented on GitHub (Aug 25, 2025):

Doesn't work behause the Migration still wants to execute that command

<!-- gh-comment-id:3221734903 --> @Blacks-Army commented on GitHub (Aug 25, 2025): Doesn't work behause the Migration still wants to execute that command
Author
Owner

@oschwartz10612 commented on GitHub (Aug 25, 2025):

The containers should be updated if you give it a pull and try again
does it work?

<!-- gh-comment-id:3221745423 --> @oschwartz10612 commented on GitHub (Aug 25, 2025): The containers should be updated if you give it a pull and try again does it work?
Author
Owner

@cendenta commented on GitHub (Aug 25, 2025):

I had this issue too, and can confirm that pulling the new container fixed it.

<!-- gh-comment-id:3221813555 --> @cendenta commented on GitHub (Aug 25, 2025): I had this issue too, and can confirm that pulling the new container fixed it.
Author
Owner

@Blacks-Army commented on GitHub (Aug 25, 2025):

Okay it works now thanks!

<!-- gh-comment-id:3221853373 --> @Blacks-Army commented on GitHub (Aug 25, 2025): Okay it works now thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#16846