Skip to content

Commit

Permalink
Add next-superjson-plugin to package.json and drop
Browse files Browse the repository at this point in the history
tables in migration 0002
  • Loading branch information
Timothy Miller committed Nov 4, 2023
1 parent 0661c32 commit 573164b
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 10 deletions.
1 change: 1 addition & 0 deletions apps/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@supabase/auth-helpers-react": "^0.4.2",
"@t4/ui": "*",
"@tamagui/next-theme": "1.75.9",
"next-superjson-plugin": "^0.5.9",
"@tsndr/cloudflare-worker-jwt": "^2.2.5",
"app": "*",
"million": "2.6.4",
Expand Down
Binary file modified bun.lockb
Binary file not shown.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"@supabase/supabase-js": "^2.38.4",
"check-dependency-version-consistency": "^4.1.0",
"eslint": "^8.52.0",
"next-superjson-plugin": "^0.5.9",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.3",
"react-native-url-polyfill": "^2.0.0",
Expand Down
3 changes: 3 additions & 0 deletions packages/api/migrations/0002_faithful_gravity.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
DROP TABLE `Car`;--> statement-breakpoint
DROP TABLE `Test`;--> statement-breakpoint
DROP TABLE `User`;
13 changes: 13 additions & 0 deletions packages/api/migrations/meta/0002_snapshot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "5",
"dialect": "sqlite",
"id": "4dc9ecc7-da6d-4edc-841b-2d44a349d363",
"prevId": "19d05176-7733-4654-b24f-799d3fddc19c",
"tables": {},
"enums": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
}
}
7 changes: 7 additions & 0 deletions packages/api/migrations/meta/_journal.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
"when": 1694824497981,
"tag": "0001_worried_gamma_corps",
"breakpoints": true
},
{
"idx": 2,
"version": "5",
"when": 1699066590780,
"tag": "0002_faithful_gravity",
"breakpoints": true
}
]
}
7 changes: 3 additions & 4 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@
"drizzle-valibot": "^0.1.1",
"hono": "^3.9.1",
"miniflare": "3.20231025.1",
"superjson": "^2.2.0",
"valibot": "^0.20.0"
"superjson": "1.13.3",
"valibot": "^0.20.1"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20231025.0",
"bun-types": "^1.0.7",
"dotenv-cli": "^7.3.0",
"bun-types": "^1.0.8",
"drizzle-kit": "^0.19.13",
"eslint": "^8.52.0",
"typescript": "^5.2.2",
Expand Down
5 changes: 0 additions & 5 deletions packages/api/src/db/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,3 @@ export const CarTable = sqliteTable('Car', {
export type Car = InferSelectModel<typeof CarTable>
export type InsertCar = InferInsertModel<typeof CarTable>
export const CarSchema = createInsertSchema(CarTable)

export const TestTable = sqliteTable('Test', {
id: text('id').primaryKey(),
name: text('name').notNull(),
})

0 comments on commit 573164b

Please sign in to comment.