drizzle-team / drizzle-team/drizzle-orm

[BUG ]: Docs - `migrate.ts` missing from the sample project file structure

Open
#3,025 0 comments 0 reactions 0 assignees View on GitHub
docs docs/improvements
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### What version of `drizzle-orm` are you using?

n/a

### What version of `drizzle-kit` are you using?

n/a

### Describe the Bug

From [Basic File Structure](https://orm.drizzle.team/learn/tutorials/drizzle-with-neon#basic-file-structure), it is mentioned that

> In the `src/db` directory, we have database-related files including connection in `db.ts`, schema definitions in `schema.ts`, and a migration script in `migrate.ts` file which is responsible for applying migrations that stored in the migrations directory.

However, `migrate.ts` is missing from the file structure directly below the above description. (Additionally, there is also no `db` directory reflected in the file structure).

![18C76685-9294-4885-983E-E6BC042965AE_4_5005_c](https://github.com/user-attachments/assets/d2299fa5-9077-49ff-980e-2fe85eceb635)

### Expected behavior

`migrate.ts` should be under `src/`

### Environment & setup

n/a

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.