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

[4.x]: Changing existing field to Lightswitch is broken #14792

Closed
boboldehampsink opened this issue Apr 11, 2024 · 2 comments
Closed

[4.x]: Changing existing field to Lightswitch is broken #14792

boboldehampsink opened this issue Apr 11, 2024 · 2 comments
Assignees

Comments

@boboldehampsink
Copy link
Contributor

What happened?

Description

SQLSTATE[42701]: Duplicate column: 7 ERROR: column "field_productOnlineStock_quskocqc" of relation "content" already exists
The SQL being executed was: ALTER TABLE "content" ADD "field_productOnlineStock_quskocqc" boolean

Steps to reproduce

  1. Create a number field, for example
  2. Save it
  3. Change to Lightswitch type

Expected behavior

It changes to Lightswitch type

Actual behavior

Error (as above)

Craft CMS version

4.8.8

PHP version

8.3

Operating system and version

No response

Database type and version

PostgreSQL

Image driver and version

No response

Installed plugins and versions

@i-just
Copy link
Contributor

i-just commented Apr 11, 2024

Hi, thanks for reporting! I raised a PR for this.

@brandonkelly
Copy link
Member

Craft 4.8.10 is out with the fix for this. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants