bavard_migration 0.0.2 copy "bavard_migration: ^0.0.2" to clipboard
bavard_migration: ^0.0.2 copied to clipboard

Migration system for Bavard ORM.

Bavard Migration #

Migration system for the Bavard ORM. This package provides the core migration logic and commands to manage your database schema.

📚 Documentation #

For detailed guides, API references, and usage examples, please visit our documentation:

👉 Read the Documentation

Commands #

Make Migration #

Create a new migration file.

dart run bavard make:migration <MigrationName> [options]

Options:

  • --path=<dir>: Specify a custom directory for migration files (defaults to database/migrations).

Example:

dart run bavard make:migration create_users_table

Migrate #

Run the database migrations. Requires lib/config/database.dart exporting Future<DatabaseAdapter> getDatabaseAdapter().

dart run bavard migrate [options]

Options:

  • --path=<dir>: Specify a custom directory for migration files (defaults to database/migrations).

Example:

dart run bavard migrate

Rollback #

Rollback the last database migration batch.

dart run bavard migrate:rollback [options]

Options:

  • --path=<dir>: Specify a custom directory for migration files (defaults to database/migrations).

Example:

dart run bavard migrate:rollback
0
likes
120
points
--
downloads

Publisher

unverified uploader

Weekly Downloads

Migration system for Bavard ORM.

Documentation

API reference

License

MIT (license)

Dependencies

bavard, bavard_cli, path, yaml

More

Packages that depend on bavard_migration