-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added github workflow, moved drizzle files to src/contrib
- Loading branch information
Showing
8 changed files
with
46 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: lint-and-format | ||
run-name: ${{ github.actor }} is pushing code | ||
on: [push] | ||
jobs: | ||
check-formatting: | ||
name: "Run Prettier" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@4 | ||
- uses: oven-sh/bun@v2 | ||
- run: bun install | ||
- run: bun fmt:check | ||
lint: | ||
name: "Run ESLint" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@4 | ||
- uses: oven-sh/bun@v2 | ||
- run: bun install | ||
- run: bun lint |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
{"version":"7","dialect":"sqlite","entries":[]} | ||
{ | ||
"version": "7", | ||
"dialect": "sqlite", | ||
"entries": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { migrate } from "drizzle-orm/bun-sqlite/migrator"; | ||
|
||
import { DB } from "./lib/server/db"; | ||
import { DB } from "../lib/server/db"; | ||
|
||
await migrate(DB, { migrationsFolder: "./drizzle" }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// import { | ||
// type InferSelectModel, | ||
// type InferInsertModel, | ||
// sql | ||
// } from "drizzle-orm"; | ||
|
||
// import { | ||
// blob, | ||
// sqliteTable, | ||
// text, | ||
// real, | ||
// numeric, | ||
// integer, | ||
// foreignKey, | ||
// } from "drizzle-orm/sqlite-core"; | ||
|
||
export {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from "../contrib/schema"; |
This file was deleted.
Oops, something went wrong.