Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use drizzle postgis #276

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
node-version: '${{ steps.nvm.outputs.NVMRC }}'

- name: 📦 Setup pnpm - Install pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
run_install: false

Expand Down
10 changes: 5 additions & 5 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import dotenv from 'dotenv'
import type { Config } from 'drizzle-kit'
import { defineConfig } from 'drizzle-kit'
import path from 'node:path'

dotenv.config({ path: path.resolve(process.cwd(), '.env.local') })
Expand All @@ -10,11 +10,11 @@ if (process.env.SKIP_ENV_VALIDATION !== 'true') {
throw new Error('Missing environment variable DATABASE_URL')
}

export default {
export default defineConfig({
schema: './src/server/db/schema/*',
out: './drizzle',
driver: 'pg',
dialect: 'postgresql',
dbCredentials: {
connectionString: process.env.DATABASE_URL!,
url: process.env.DATABASE_URL!,
},
} satisfies Config
})
2 changes: 2 additions & 0 deletions drizzle/0000_nasty_scalphunter.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Custom SQL migration file, put you code below! --
CREATE EXTENSION postgis;
217 changes: 0 additions & 217 deletions drizzle/0000_previous_ozymandias.sql

This file was deleted.

Loading
Loading