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

Migration Error, when istalling plugin #58

Closed
alex-brukhty opened this issue Feb 26, 2023 · 3 comments
Closed

Migration Error, when istalling plugin #58

alex-brukhty opened this issue Feb 26, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@alex-brukhty
Copy link

Description

Happens on fresh install

Migration Error – craft\errors\MigrationException

An error occurred while executing the "craft\shopify\migrations\Install migration: SQLSTATE[42703]: Undefined column: 7 ERROR: column "shopifyid" named in key does not exist at character 544

The SQL being executed was: CREATE TABLE "shopify_productdata" (
   "shopifyId" varchar(255),
   "title" text,
   "bodyHtml" text,
   "createdAt" timestamp(0),
   "handle" varchar(255),
   "images" text,
   "options" text,
   "productType" varchar(255),
   "publishedAt" timestamp(0),
   "publishedScope" varchar(255),
   "shopifyStatus" varchar(255),
   "tags" varchar(255),
   "templateSuffix" varchar(255),
   "updatedAt" varchar(255),
   "variants" text,
   "vendor" varchar(255),
   "metaFields" text,
   "dateCreated" timestamp(0) NOT NULL,
   "dateUpdated" timestamp(0) NOT NULL,
   "uid" varchar(255),
   PRIMARY KEY(shopifyId)
)

Steps to reproduce

  1. Go to plugin store
  2. Install plugin

Additional info

  • Craft version: 4.3.10
  • PHP version: 8.2.1
  • Database driver & version: PostgreSQL 12.13
  • Plugins & versions: 3.1.0
@alex-brukhty alex-brukhty added the bug Something isn't working label Feb 26, 2023
@lukeholder
Copy link
Member

lukeholder commented Apr 3, 2023

Looks like a bug with PostgreSQL - I will look to fix it shortly. Sorry for the delay.

@lukeholder
Copy link
Member

Thanks for reporting. This is fixed for the next release.

To get the fix early, change your craftcms/shopify requirement in composer.json to:

"require": {
  "craftcms/shopify": "dev-develop#e554c89dc58837e63da85865dfe60351ef0cfb8e as 3.1.1",
  "...": "..."
}

Then run composer update.

Thanks!

lukeholder added a commit that referenced this issue Jun 9, 2023
@lukeholder
Copy link
Member

This is now out in 3.2.0!

See the notes in the upgrading section of the README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants