fix: Make MySQL migration for nano id change compatible with version 5.7 (#6498)

* fix: Make migration for MySQL compatible with version 5.7

* fix: Correct syntax

* fix: Syntax for primary key creation

* fix: Remove unnecessary constraint statement

* fix: Name columns for sqlite migration to prevent issues

* ci: Always run DB tests with table-prefix and alt-schema

* add tablePrefix to migrations (mysql not fixed)

* fix character_set on mysql migrations

* fix mysql collation version difference

* cater for mariadb collations

---------

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
Co-authored-by: Michael Auerswald <michael.auerswald@gmail.com>
This commit is contained in:
Omar Ajoue
2023-06-21 17:10:47 +02:00
committed by GitHub
parent 5bf83f8bf6
commit 044c710a8e
5 changed files with 151 additions and 131 deletions

View File

@@ -38,19 +38,11 @@ jobs:
- name: Test MySQL
working-directory: packages/cli
run: pnpm test:mysql
run: DB_TABLE_PREFIX=test_ pnpm test:mysql
- name: Test Postgres
working-directory: packages/cli
run: pnpm test:postgres
- name: Test Postgres (alternate schema)
working-directory: packages/cli
run: pnpm test:postgres:alt-schema
- name: Test Postgres (table prefix)
working-directory: packages/cli
run: pnpm test:postgres:with-table-prefix
run: DB_POSTGRESDB_SCHEMA=alt_schema DB_TABLE_PREFIX=test_ pnpm test:postgres
- name: Notify Slack on failure
uses: act10ns/slack@v2.0.0