Skip to content

Use Pglite instead of Sqlite #59

Use Pglite instead of Sqlite

Use Pglite instead of Sqlite #59

Triggered via pull request August 13, 2024 11:35
Status Failure
Total duration 38s
Artifacts

ci.yml

on: pull_request
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
test/registry.test.ts > cache > should use relations to extract models: test/registry.test.ts#L50
AssertionError: expected Set{ 'model:public.chat:id-chat', …(3) } to deeply equal Set{ 'model:chat:id-chat', …(3) } - Expected + Received Set { - "model:chat:id-chat", - "model:message:id-message", - "model:message:id-message2", - "model:revision:id-revision", + "model:public.chat:id-chat", + "model:public.message:id-message", + "model:public.message:id-message2", + "model:public.revision:id-revision", } ❯ test/registry.test.ts:50:26
src/database/migrations.test.ts > Migration Tests > 0000_careful_smiling_tiger: src/database/migrations.test.ts#L276
DrizzleError: Failed to run the query ' CREATE TABLE IF NOT EXISTS "document" ( "id" text PRIMARY KEY NOT NULL, "name" text NOT NULL, "type" text DEFAULT 'document' NOT NULL, "description" text NOT NULL, "content" text NOT NULL, "attributes" jsonb DEFAULT '{}'::jsonb NOT NULL, "created_at" text DEFAULT CURRENT_TIMESTAMP ); ' ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:148:10 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:282:5 Caused by: SqliteError: unrecognized token: ":" ❯ Database.prepare node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21 ❯ BetterSQLiteSession.prepareQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/better-sqlite3/session.ts:50:28 ❯ BetterSQLiteSession.prepareOneTimeQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:135:15 ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:146:16 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:282:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'SQLITE_ERROR' }
src/database/migrations.test.ts > Migration Tests > 0001_nosy_earthquake: src/database/migrations.test.ts#L276
DrizzleError: Failed to run the query ' CREATE TABLE IF NOT EXISTS "document" ( "id" text PRIMARY KEY NOT NULL, "name" text NOT NULL, "type" text DEFAULT 'document' NOT NULL, "description" text NOT NULL, "content" text NOT NULL, "attributes" jsonb DEFAULT '{}'::jsonb NOT NULL, "created_at" text DEFAULT CURRENT_TIMESTAMP ); ' ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:148:10 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:300:5 Caused by: SqliteError: unrecognized token: ":" ❯ Database.prepare node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21 ❯ BetterSQLiteSession.prepareQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/better-sqlite3/session.ts:50:28 ❯ BetterSQLiteSession.prepareOneTimeQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:135:15 ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:146:16 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:300:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'SQLITE_ERROR' }
src/database/migrations.test.ts > Migration Tests > 0002_overjoyed_mordo: src/database/migrations.test.ts#L276
DrizzleError: Failed to run the query ' CREATE TABLE IF NOT EXISTS "document" ( "id" text PRIMARY KEY NOT NULL, "name" text NOT NULL, "type" text DEFAULT 'document' NOT NULL, "description" text NOT NULL, "content" text NOT NULL, "attributes" jsonb DEFAULT '{}'::jsonb NOT NULL, "created_at" text DEFAULT CURRENT_TIMESTAMP ); ' ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:148:10 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:374:5 Caused by: SqliteError: unrecognized token: ":" ❯ Database.prepare node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21 ❯ BetterSQLiteSession.prepareQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/better-sqlite3/session.ts:50:28 ❯ BetterSQLiteSession.prepareOneTimeQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:135:15 ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:146:16 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:374:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'SQLITE_ERROR' }
src/database/migrations.test.ts > Migration Tests > 0003_huge_nick_fury: src/database/migrations.test.ts#L276
DrizzleError: Failed to run the query ' CREATE TABLE IF NOT EXISTS "document" ( "id" text PRIMARY KEY NOT NULL, "name" text NOT NULL, "type" text DEFAULT 'document' NOT NULL, "description" text NOT NULL, "content" text NOT NULL, "attributes" jsonb DEFAULT '{}'::jsonb NOT NULL, "created_at" text DEFAULT CURRENT_TIMESTAMP ); ' ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:148:10 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:488:5 Caused by: SqliteError: unrecognized token: ":" ❯ Database.prepare node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21 ❯ BetterSQLiteSession.prepareQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/better-sqlite3/session.ts:50:28 ❯ BetterSQLiteSession.prepareOneTimeQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:135:15 ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:146:16 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:488:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'SQLITE_ERROR' }
src/database/migrations.test.ts > Migration Tests > 0004_skinny_machine_man: src/database/migrations.test.ts#L276
DrizzleError: Failed to run the query ' CREATE TABLE IF NOT EXISTS "document" ( "id" text PRIMARY KEY NOT NULL, "name" text NOT NULL, "type" text DEFAULT 'document' NOT NULL, "description" text NOT NULL, "content" text NOT NULL, "attributes" jsonb DEFAULT '{}'::jsonb NOT NULL, "created_at" text DEFAULT CURRENT_TIMESTAMP ); ' ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:148:10 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:597:5 Caused by: SqliteError: unrecognized token: ":" ❯ Database.prepare node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21 ❯ BetterSQLiteSession.prepareQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/better-sqlite3/session.ts:50:28 ❯ BetterSQLiteSession.prepareOneTimeQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:135:15 ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:146:16 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:597:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'SQLITE_ERROR' }
src/database/migrations.test.ts > Migration Tests > 0005_careful_the_professor: src/database/migrations.test.ts#L276
DrizzleError: Failed to run the query ' CREATE TABLE IF NOT EXISTS "document" ( "id" text PRIMARY KEY NOT NULL, "name" text NOT NULL, "type" text DEFAULT 'document' NOT NULL, "description" text NOT NULL, "content" text NOT NULL, "attributes" jsonb DEFAULT '{}'::jsonb NOT NULL, "created_at" text DEFAULT CURRENT_TIMESTAMP ); ' ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:148:10 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:678:5 Caused by: SqliteError: unrecognized token: ":" ❯ Database.prepare node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21 ❯ BetterSQLiteSession.prepareQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/better-sqlite3/session.ts:50:28 ❯ BetterSQLiteSession.prepareOneTimeQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:135:15 ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:146:16 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:678:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'SQLITE_ERROR' }
src/database/migrations.test.ts > Migration Tests > 0006_opposite_sugar_man: src/database/migrations.test.ts#L276
DrizzleError: Failed to run the query ' CREATE TABLE IF NOT EXISTS "document" ( "id" text PRIMARY KEY NOT NULL, "name" text NOT NULL, "type" text DEFAULT 'document' NOT NULL, "description" text NOT NULL, "content" text NOT NULL, "attributes" jsonb DEFAULT '{}'::jsonb NOT NULL, "created_at" text DEFAULT CURRENT_TIMESTAMP ); ' ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:148:10 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:766:5 Caused by: SqliteError: unrecognized token: ":" ❯ Database.prepare node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21 ❯ BetterSQLiteSession.prepareQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/better-sqlite3/session.ts:50:28 ❯ BetterSQLiteSession.prepareOneTimeQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:135:15 ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:146:16 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:766:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'SQLITE_ERROR' }
src/database/migrations.test.ts > Migration Tests > 0007_tidy_lilandra: src/database/migrations.test.ts#L276
DrizzleError: Failed to run the query ' CREATE TABLE IF NOT EXISTS "document" ( "id" text PRIMARY KEY NOT NULL, "name" text NOT NULL, "type" text DEFAULT 'document' NOT NULL, "description" text NOT NULL, "content" text NOT NULL, "attributes" jsonb DEFAULT '{}'::jsonb NOT NULL, "created_at" text DEFAULT CURRENT_TIMESTAMP ); ' ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:148:10 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:799:5 Caused by: SqliteError: unrecognized token: ":" ❯ Database.prepare node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21 ❯ BetterSQLiteSession.prepareQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/better-sqlite3/session.ts:50:28 ❯ BetterSQLiteSession.prepareOneTimeQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:135:15 ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:146:16 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:799:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'SQLITE_ERROR' }
src/database/migrations.test.ts > Migration Tests > 0008_parallel_grandmaster: src/database/migrations.test.ts#L276
DrizzleError: Failed to run the query ' CREATE TABLE IF NOT EXISTS "document" ( "id" text PRIMARY KEY NOT NULL, "name" text NOT NULL, "type" text DEFAULT 'document' NOT NULL, "description" text NOT NULL, "content" text NOT NULL, "attributes" jsonb DEFAULT '{}'::jsonb NOT NULL, "created_at" text DEFAULT CURRENT_TIMESTAMP ); ' ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:148:10 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:828:5 Caused by: SqliteError: unrecognized token: ":" ❯ Database.prepare node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/lib/methods/wrappers.js:5:21 ❯ BetterSQLiteSession.prepareQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/better-sqlite3/session.ts:50:28 ❯ BetterSQLiteSession.prepareOneTimeQuery node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:135:15 ❯ BetterSQLiteSession.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/session.ts:146:16 ❯ BaseSQLiteDatabase.run node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@opentel_7rlby6h6jhxbznxauxjc74y6dq/node_modules/src/sqlite-core/db.ts:523:23 ❯ src/database/migrations.test.ts:276:76 ❯ runMigration src/database/migrations.test.ts:276:54 ❯ applyMigrationsUpTo src/database/migrations.test.ts:247:9 ❯ src/database/migrations.test.ts:828:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 'SQLITE_ERROR' }
Tests (20, ubuntu-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/