This repository was archived by the owner on Nov 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments