Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Commit bf80f6d

Browse files
Merge pull request #29 from rphlmr/doc/add-empty-migration
add empty migration doc
2 parents 5faaa9f + c6b6c7d commit bf80f6d

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

readme.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,17 @@ To easily migrate from previous folder structure to new you need to run `up` com
113113

114114
## List of commands
115115

116-
### Generate SQL migrations based on current .ts schema\
116+
### Generate SQL migrations based on current .ts schema
117117

118118
---
119119

120120
**`$ drizzle-kit generate:pg`** \
121121
**`$ drizzle-kit generate:mysql`** \
122-
**`$ drizzle-kit generate:sqlite`** \
122+
**`$ drizzle-kit generate:sqlite`**
123123

124-
`--config` [optional default=drizzle.config.json] config file path
125-
`--schema` path to typescript schema file or folder with multiple schema files
126-
`--out` [optional default=drizzle/] migrations folder
124+
`--config` [optional default=drizzle.config.json] config file path\
125+
`--schema` path to typescript schema file or folder with multiple schema files\
126+
`--out` [optional default=drizzle/] migrations folder\
127127

128128
```shell
129129
$ drizzle-kit generate:pg
@@ -137,6 +137,13 @@ $ drizzle-kit generate:pg --schema=./src/schema.ts
137137

138138
$ drizzle-kit generate:pg --schema=./src/schema.ts --out=./migrations/
139139
## runs generate command and outputs results to ./migration
140+
```
141+
142+
**Generate an empty SQL migration with `--custom`**
143+
144+
```shell
145+
$ drizzle-kit generate:pg --custom
146+
## runs generate command and outputs an empty migration for custom SQL
140147
```
141148

142149
### Introspect existing database and generate typescript schema

0 commit comments

Comments
 (0)