Skip to content

Commit

Permalink
update to orchid-orm 1.30 for dev/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaSemenov committed Jun 20, 2024
1 parent 09c1fc3 commit e134031
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 19 deletions.
2 changes: 1 addition & 1 deletion packages/orchid-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"graphql-orm": "workspace:*",
"graphql-request": "^6.0.0",
"graphql-tag": "^2.12.6",
"orchid-orm": "^1.23.0",
"orchid-orm": "^1.30.0",
"tsconfig-vite-node": "^1.1.2",
"tsup": "^8.1.0",
"vite": "^5.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/orchid-graphql/playground/readme.sample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class PostTable extends BaseTable {
readonly table = "post"
columns = this.setColumns((t) => ({
id: t.identity().primaryKey(),
text: t.text(0, 5000),
text: t.text(),
}))
}

Expand Down
7 changes: 1 addition & 6 deletions packages/orchid-graphql/tests/setup/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ import {
} from "orchid-orm"
import { afterAll, afterEach, beforeEach } from "vitest"

export const BaseTable = createBaseTable({
columnTypes: (t) => ({
...t,
text: () => t.text(0, Number.POSITIVE_INFINITY),
}),
})
export const BaseTable = createBaseTable()

export async function create_db<T extends TableClasses>(tables: T) {
const db = orchidORM(
Expand Down
33 changes: 22 additions & 11 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e134031

Please sign in to comment.