Kit bugfixes #3782
Annotations
9 errors
tests/push/mysql-push.test.ts > add check constraint to table:
drizzle-kit/tests/push/mysql-push.test.ts#L104
AssertionError: expected [ { type: 'drop_table', …(3) }, …(2) ] to strictly equal [ { …(4) }, { …(4) } ]
- Expected
+ Received
Array [
Object {
+ "policies": Array [],
+ "schema": undefined,
+ "tableName": "columns",
+ "type": "drop_table",
+ },
+ Object {
"data": "some_check1;`test`.`values` < 100",
"schema": "",
"tableName": "test",
"type": "create_check_constraint",
},
Object {
"data": "some_check2;'test' < 100",
"schema": "",
"tableName": "test",
"type": "create_check_constraint",
},
]
❯ tests/push/mysql-push.test.ts:104:21
|
tests/push/mysql-push.test.ts > drop check constraint to table:
drizzle-kit/tests/schemaDiffer.ts#L1347
Error: Table 'test' already exists
❯ PromiseConnection.query ../node_modules/.pnpm/[email protected]/node_modules/mysql2/promise.js:93:22
❯ Module.diffTestSchemasPushMysql tests/schemaDiffer.ts:1347:16
❯ tests/push/mysql-push.test.ts:143:40
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ER_TABLE_EXISTS_ERROR', errno: 1050, sql: 'CREATE TABLE `test` (\n\t`id` int NOT NULL,\n\t`values` int,\n\tCONSTRAINT `test_id` PRIMARY KEY(`id`),\n\tCONSTRAINT `some_check1` CHECK(`test`.`values` < 100),\n\tCONSTRAINT `some_check2` CHECK(\'test\' < 100)\n);\n', sqlState: '42S01', sqlMessage: 'Table \'test\' already exists' }
|
tests/push/mysql-push.test.ts > db has checks. Push with same names:
drizzle-kit/tests/schemaDiffer.ts#L1347
Error: Table 'test' already exists
❯ PromiseConnection.query ../node_modules/.pnpm/[email protected]/node_modules/mysql2/promise.js:93:22
❯ Module.diffTestSchemasPushMysql tests/schemaDiffer.ts:1347:16
❯ tests/push/mysql-push.test.ts:192:40
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ER_TABLE_EXISTS_ERROR', errno: 1050, sql: 'CREATE TABLE `test` (\n\t`id` int NOT NULL,\n\t`values` int DEFAULT 1,\n\tCONSTRAINT `test_id` PRIMARY KEY(`id`),\n\tCONSTRAINT `some_check` CHECK(`test`.`values` < 100)\n);\n', sqlState: '42S01', sqlMessage: 'Table \'test\' already exists' }
|
tests/push/mysql-push.test.ts > create view:
drizzle-kit/tests/schemaDiffer.ts#L1347
Error: Table 'test' already exists
❯ PromiseConnection.query ../node_modules/.pnpm/[email protected]/node_modules/mysql2/promise.js:93:22
❯ Module.diffTestSchemasPushMysql tests/schemaDiffer.ts:1347:16
❯ tests/push/mysql-push.test.ts:220:40
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ER_TABLE_EXISTS_ERROR', errno: 1050, sql: 'CREATE TABLE `test` (\n\t`id` int NOT NULL,\n\tCONSTRAINT `test_id` PRIMARY KEY(`id`)\n);\n', sqlState: '42S01', sqlMessage: 'Table \'test\' already exists' }
|
tests/push/mysql-push.test.ts > drop view:
drizzle-kit/tests/schemaDiffer.ts#L1347
Error: Table 'test' already exists
❯ PromiseConnection.query ../node_modules/.pnpm/[email protected]/node_modules/mysql2/promise.js:93:22
❯ Module.diffTestSchemasPushMysql tests/schemaDiffer.ts:1347:16
❯ tests/push/mysql-push.test.ts:263:40
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ER_TABLE_EXISTS_ERROR', errno: 1050, sql: 'CREATE TABLE `test` (\n\t`id` int NOT NULL,\n\tCONSTRAINT `test_id` PRIMARY KEY(`id`)\n);\n', sqlState: '42S01', sqlMessage: 'Table \'test\' already exists' }
|
tests/push/mysql-push.test.ts > alter view ".as":
drizzle-kit/tests/schemaDiffer.ts#L1347
Error: Table 'test' already exists
❯ PromiseConnection.query ../node_modules/.pnpm/[email protected]/node_modules/mysql2/promise.js:93:22
❯ Module.diffTestSchemasPushMysql tests/schemaDiffer.ts:1347:16
❯ tests/push/mysql-push.test.ts:300:40
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'ER_TABLE_EXISTS_ERROR', errno: 1050, sql: 'CREATE TABLE `test` (\n\t`id` int NOT NULL,\n\tCONSTRAINT `test_id` PRIMARY KEY(`id`)\n);\n', sqlState: '42S01', sqlMessage: 'Table \'test\' already exists' }
|
release (drizzle-kit)
Process completed with exit code 1.
|
release (drizzle-orm)
The job was canceled because "drizzle-kit" failed.
|
release (drizzle-orm)
The operation was canceled.
|