umbalaconmeogia / yii2-batsg
My best practice and my libraries when using yii2 framework.
Package info
github.com/umbalaconmeogia/yii2-batsg
Type:yii2-extension
pkg:composer/umbalaconmeogia/yii2-batsg
v0.7.5
2024-06-16 01:57 UTC
Requires
This package is auto-updated.
Last update: 2026-06-16 05:57:18 UTC
README
My style, my best practice and my libraries when using yii2 framework.
Overview
- Convention when designing database.
- gii modification
Convention when designing database
- All DB table should contain following columns.
| Column name | Data type | Description |
|---|---|---|
| id | serial | primary key |
| data_status | int | 1: new, 2: updated, 9: deleted |
| created_by | int | Create user id. Set automatically. |
| created_at | int | Created timestamp. Set automatically. |
| updated_by | int | Update user id. Set automatically. |
| updated_at | int | Updated timestamp. Set automatically. |
Install yii2-batsg into your project.
composer require umbalaconmeogia/yii2-batsg
Explanation about composer require, update and install
| command | change composer.json | change composer.lock |
|---|---|---|
| require | Y | Y |
| update | N | Y |
| install | N | N |
- require:
composer require umbalaconmeogia/yii2-batsgThis will update or install the newest version.composer.jsonandcomposer.lockwill be updated as well. - update:
composer update umbalaconmeogia/yii2-batsgThis will update the package with the highest version respects to yourcomposer.json. The entry incomposer.lockwill be updated. - install:
composer install umbalaconmeogia/yii2-batsgThis will install version specified in the lock file