![]() You may also get the usage of each tool via the help How to accomplish various tasks using these tools. In this section we will describe in detail ![]() Yii provides a set of migration command line tools that allow you to:Īll these tools are accessible through the command yii migrate. Scott applies any accumulated database migrations to the production database.Scott updates the source code on the production server to the release tag.Scott creates a release tag for the project repository that contains some new database migrations.To reflect the changes that Tim has made.Īnd the following steps show how to deploy a new release with database migrations to production: Doug applies the migration to his local development database, thereby synchronizing his database.Doug updates his repository from the source control system and receives the new migration.Tim commits the new migration into the source control system (e.g.creates a new table, changes a column definition, etc.). The following steps show how database migration can be used by a team during development: You to keep track of database changes in terms of database migrations which are version-controlled together Often requires some source code changes, Yii supports the so-called database migration feature that allows That an index should be created to improve the query performance and so on. For example, during the development of an application,Ī new table may be found necessary after the application is deployed to production, it may be discovered During the course of developing and maintaining a database-driven application, the structure of the databaseīeing used evolves just like the source code does.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |