Skip to content

Conversation

@samdark
Copy link
Member

@samdark samdark commented Dec 25, 2025

No description provided.

samdark and others added 10 commits December 26, 2025 01:40
# Conflicts:
#	_translations/po/es/guide_start_creating-project.md.po
#	_translations/po/es/guide_start_databases.md.po
#	_translations/po/es/guide_start_hello.md.po
#	_translations/po/es/guide_views_template-engines.md.po
#	_translations/po/es/guide_views_view.md.po
#	_translations/po/id/guide_start_creating-project.md.po
#	_translations/po/id/guide_start_databases.md.po
#	_translations/po/id/guide_start_hello.md.po
#	_translations/po/id/guide_views_template-engines.md.po
#	_translations/po/id/guide_views_view.md.po
#	_translations/po/ru/guide_start_creating-project.md.po
#	_translations/po/ru/guide_start_databases.md.po
#	_translations/po/ru/guide_start_hello.md.po
#	_translations/po/ru/guide_views_template-engines.md.po
#	_translations/po/ru/guide_views_view.md.po
#	_translations/pot/guide_start_creating-project.md.pot
#	_translations/pot/guide_start_databases.md.pot
#	_translations/pot/guide_start_hello.md.pot
#	_translations/pot/guide_views_template-engines.md.pot
#	_translations/pot/guide_views_view.md.pot
#	src/es/guide/start/creating-project.md
#	src/id/guide/start/creating-project.md
#	src/ru/guide/start/creating-project.md
@samdark samdark marked this pull request as ready for review December 27, 2025 10:29
Copilot AI review requested due to automatic review settings December 27, 2025 10:29
@samdark samdark merged commit e354e64 into master Dec 27, 2025
12 checks passed
@samdark samdark deleted the migrations branch December 27, 2025 10:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR significantly expands the database migrations guide documentation across multiple languages (English, Russian, Indonesian, Spanish), transforming it from minimal documentation into a comprehensive guide based on Yii 2.0's migration documentation structure.

Key changes:

  • Added extensive introductory content explaining database migration concepts and workflow
  • Expanded configuration instructions with detailed examples
  • Added comprehensive documentation on creating, applying, reverting, and listing migrations
  • Documented migration builder methods and column types extensively
  • Included sections on irreversible and transactional migrations

Reviewed changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/guide/databases/db-migrations.md Main English guide - comprehensive expansion with detailed migration documentation
src/ru/guide/databases/db-migrations.md Russian version with identical English content (awaiting translation)
src/id/guide/databases/db-migrations.md Indonesian version with identical English content (awaiting translation)
src/es/guide/databases/db-migrations.md Spanish version with identical English content (awaiting translation)
_translations/pot/*.pot Auto-generated translation template files updated
_translations/po//.po Auto-generated translation files updated

- smallint
- integer
- bigint
- flat
Copy link

Copilot AI Dec 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in column type name: "flat" should be "float". This appears in the list of numeric column types.

Suggested change
- flat
- float

Copilot uses AI. Check for mistakes.
To list which migrations have been applied and which are not, you may use the following commands:

```
./yii migrate/history # showing the last 10 applied migrations
Copy link

Copilot AI Dec 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent command format: Line 371 uses a forward slash (migrate/history) instead of a colon like all other commands. This should be migrate:history to match the pattern used throughout the document.

Suggested change
./yii migrate/history # showing the last 10 applied migrations
./yii migrate:history # showing the last 10 applied migrations

Copilot uses AI. Check for mistakes.
Comment on lines +46 to +58
> application logic such.
## Initial configuration

To use migrations, install [yiisoft/db-migration](https://github.com/yiisoft/db-migration/) package:

```shell
composer require yiisoft/db-migration
make composer require yiisoft/db-migration
```

### Example usage
Create a directory to store migrations `src/Migration` right in the project root.

First, configure a DI container. Create `config/common/db.php` with the following content:
Add the following configuration to `config/common/params.php`:
Copy link

Copilot AI Dec 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incomplete sentence: The sentence ends abruptly with "such" and needs completion. It should likely read "...should be kept independent of other application logic such as Active Record or entity classes."

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants