migration with snowflake dialect giving SQL compilation error

オープン
#1,229 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, node.js, sql
領域
cli, databases

調査の方向性

Start by reproducing the issue with npx sequelize-cli db:migrate using the configuration and migration setup described in the issue. Inspect the generated SQL around the CHARSET and utf8_unicode_ci clauses, then verify that the migration completes successfully for the Snowflake dialect without those incompatible clauses.

索引モデルが issue の本文から書いたものです。

説明

What you are doing?

Attempting to run migration on snowflake. I am following the steps mentioned here - https://sequelize.org/docs/v6/other-topics/migrations/#installing-the-cli

What do you expect to happen?

I want to run npx sequelize-cli db:migrate migration successfully

What is actually happening?

But I am getting SQL compilation error

Output, either JSON or SQL

PS C:\projects\snowflake\migration-poc> npx sequelize-cli db:migrate

Sequelize CLI [Node: 18.12.1, CLI: 6.5.2, ORM: 6.28.0]

Loaded configuration file "config\config.json".
Using environment "development".
Disconnected connection with id: 03eabb72-293c-4caa-841a-9d7713c34e7c

ERROR: SQL compilation error:
syntax error line 1 at position 112 unexpected 'CHARSET'.
syntax error line 1 at position 133 unexpected 'utf8_unicode_ci'.

Dialect: snowflake
Database version: XXX
Sequelize CLI version: 6.5.2
Sequelize version: 6.28.0

主要言語
JavaScript
スター
2.6k
フォーク
524
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

sequelize/cli のほかの issue

sequelize/cli の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。