pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/SeaQL/sea-orm/tree/master/sea-orm-migration

/assets/primer-70be7debc79a8eff.css" /> sea-orm/sea-orm-migration at master · SeaQL/sea-orm · GitHub
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

SeaORM CLI

Install and Usage:

> cargo install sea-orm-cli 
> sea-orm-cli help

Or:

> cargo install --bin sea
> sea help

Getting Help:

cargo run -- -h

Running Entity Generator:

# MySQL (`--database-schema` option is ignored)
cargo run -- generate entity -u mysql://sea:sea@localhost/bakery -o out

# SQLite (`--database-schema` option is ignored)
cargo run -- generate entity -u sqlite://bakery.db -o out

# PostgreSQL
cargo run -- generate entity -u postgres://sea:sea@localhost/bakery -s public -o out

Running Migration:

  • Initialize migration directory
    cargo run -- migrate init
  • Apply all pending migrations
    cargo run -- migrate
    cargo run -- migrate up
  • Apply first 10 pending migrations
    cargo run -- migrate up -n 10
  • Rollback last applied migrations
    cargo run -- migrate down
  • Rollback last 10 applied migrations
    cargo run -- migrate down -n 10
  • Drop all tables from the database, then reapply all migrations
    cargo run -- migrate fresh
  • Rollback all applied migrations, then reapply all migrations
    cargo run -- migrate refresh
  • Rollback all applied migrations
    cargo run -- migrate reset
  • Check the status of all migrations
    cargo run -- migrate status
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy