Skip to content

hubble459/sea-orm-migration-timestamps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sea ORM Migration Timestamps

Add created_at and updated_at columns to your tables, which will autoupdate with the help of triggers

Install

In Cargo.toml

# If you use PostgreSQL
sea-orm-migration-timestamps = { git = "https://github.com/hubble459/sea-orm-migration-timestamps.git", features = [ "postgres" ] }
# If you use MySQL
sea-orm-migration-timestamps = { git = "https://github.com/hubble459/sea-orm-migration-timestamps.git", features = [ "mysql" ] }
# If you use SQLite
sea-orm-migration-timestamps = { git = "https://github.com/hubble459/sea-orm-migration-timestamps.git", features = [ "sqlite" ] }

Or in terminal use

# If you use PostgreSQL
cargo add --git https://github.com/hubble459/sea-orm-migration-timestamps.git -Fpostgres
# If you use MySQL
cargo add --git https://github.com/hubble459/sea-orm-migration-timestamps.git -Fmysql
# If you use SQLite
cargo add --git https://github.com/hubble459/sea-orm-migration-timestamps.git -Fsqlite

About

Automatic timestamp functionality for Sea ORM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages