Ad

laravel-migration-generator: Generate migrations from database structures

This package generates migrations from existing database schemas, providing a solution for creating migrations when schema changes are needed or a database lacks migrations.
Screenshot of bennett-treptow/laravel-migration-generator homepage

Laravel Migration Generator facilitates the creation of database migrations based on existing database structures. It offers a convenient alternative to manual migration creation, particularly useful when dealing with database schema alterations or initializing a database with migrations. It primarily leverages PHP and Laravel's migration framework to generate migration files.

The generator supports various database drivers, including MySQL, SQLite, PostgreSQL, and SQL Server, with configurable naming schemes. It offers extensive configuration options for customizing output paths, table and view naming, and skipping specific tables and views. Flexible configuration through environment variables provides granular control over the migration generation process.

  • Database Driver Support: Supports MySQL, SQLite, PostgreSQL, and SQL Server.
  • Customizable Naming Schemes: Allows configuring migration and view file names.
  • Skipping Options: Enables skipping specific tables and views during migration generation.
  • Environment Variable Configuration: Provides a comprehensive set of environment variables for customization.
  • Driver Specific Stubs: Supports custom stubs for different database drivers.
  • Flexible Output Paths: Permits specifying the output directory for generated migrations.
  • Multi-Driver Support: Offers targeted configurations for MySQL, SQLite, PostgreSQL, and SQL Server.

The project has been actively maintained with recent commits and a supportive community. The documentation is comprehensive, covering installation, configuration, and usage. The inclusion of stub files and customizable settings indicate a stable and evolving codebase.

Developers can leverage this package to efficiently generate database migrations, simplifying database schema management. It is particularly beneficial for projects requiring migrations from existing databases or for quickly establishing an initial migration set. It provides a streamlined workflow compared to manual migration creation and simplifies schema updates.

Languages:
Summarize:
Share:
Stars
607
Forks
77
Issues
5
Created
5 years ago
Commit
5 months ago
License
MIT
Archived
No
Updated 16 days ago

Similar Repositories