@cheetah.js/orm 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -223,6 +223,19 @@ const user = await User.findOne({
223
223
  | $or | Or | Joins query clauses with a logical OR returns all documents that match the conditions of either clause. |
224
224
  | $not | Not | Inverts the effect of a query expression and returns documents that do not match the query expression. |
225
225
 
226
+ ### [Migrations](#migrations)
227
+ Cheetah ORM is capable of creating and running migrations.
228
+ You must have the connection configuration file in the project root "cheetah.config.ts".
229
+ To create a migration, run the command below:
226
230
 
231
+ ```bash
232
+ bun cheetah-orm migration:generate
233
+ ```
234
+ This command will create a migration file in the path defined in the configuration file, differentiating your entities created with the database.
227
235
 
236
+ #### Example:
237
+ ```bash
238
+ bun cheetah-orm migration:run
239
+ ```
240
+ This command will run all migrations that have not yet been run.
228
241