Back to Openobserve

Creating Migration Entity

src/infra/src/table/migration/README.md

0.91.2396 B
Original Source

Creating Migration Entity

cargo install [email protected]

sea-orm-cli migrate generate NAME_OF_MIGRATION

For example:

sea-orm-cli migrate generate create_new_table

It will generate the new job

Generating new migration...
Creating migration file `./migration/m20250822_093713_create_new_table.rs`
Adding migration `m20250822_093713_create_new_table` to `./migration/mod.rs`