Sergey Gonimar
3872c6c565
Fix migrate/down order
...
Migrations were applied at the same time. This cause invalid sort order while downgrade.
Command `yii migrate `
Output:
```
Yii Migration Tool (based on Yii v2.0.4-dev)
Total 2 new migrations to be applied:
m150402_075534_initial
m150402_075544_feedback
```
Command `yii migrate/down 2`
```
Yii Migration Tool (based on Yii v2.0.4-dev)
Total 2 migrations to be reverted:
m150402_075534_initial
m150402_075544_feedback
```
In databasse
```
"m000000_000000_base";1428382302
"m150402_075534_initial";1428388855 <----
"m150402_075544_feedback";1428388855 <----
```
10 years ago
Alexander Makarov
1713a99c79
Fixes #7924 : Migrations in history are now ordered by time applied allowing to roll back in reverse order no matter how these were applied
10 years ago
Carsten Brandt
2b6de9665e
adjusted docs about #7347
10 years ago
lynicidn
84052d15df
Used yii\di\Instance::ensure() in MigrateController instead of doing the same without it
10 years ago
Alexander Makarov
9e42285f61
Reverted #3305
10 years ago
Carsten Brandt
8b79293ff2
added missing `@since` annotations
10 years ago
Alexander Makarov
5d7b70da5f
Adjusted #3305 : `MigrateController::refreshSchema()` is no more called automatically
10 years ago
Alexander Makarov
7c5938f902
#4791 : Added more colors to `yii migrate` command
10 years ago
Alexander Makarov
3c70d3c317
Fixes #3305 : `yii migrate` now automatically flushes DB schema cache after successful migration
10 years ago
Alexander Makarov
00ca1cb4b3
Fixes #4914
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Klimov Paul
6cc1310aed
`BaseMigrateController` extracted
10 years ago
Mark
1414f9ab6b
limit condition changed
10 years ago
Mark
d229cb8206
limit applied to migration
10 years ago
Alexander Kochetov
f5b7788edd
MigrateController refactoring
11 years ago
Alexander Kochetov
697e909c30
Comments updated
11 years ago
Alexander Kochetov
5f2101893e
MigrateCommand enhancement. `all` option added for `down` action.
11 years ago
Alexander Makarov
a86d2ad11e
Added `yii\console\Controller::EXIT_CODE_NORMAL` and `yii\console\Controller::EXIT_CODE_ERROR` constants, `yii\console\MigrateController` now returns `yii\console\Controller::EXIT_CODE_ERROR` in case of failed migration
11 years ago
Alexander Makarov
ff3a20a785
Removed duplicate property
11 years ago
Thiago Talma
c1445871f4
Correction of many errors code inspection.
...
Adjustments code according to the standards.
Adding missing PHPDoc comment.
11 years ago
Carsten Brandt
3c400dbca8
fixed file PHPdoc
...
issue #3026
11 years ago
Alexander Makarov
ab799d8ea9
Fixes #2911 : Removed `tbl_` default for table prefix
11 years ago
Carsten Brandt
67dd874e0c
renamed console controller optoins param $id to $actionId
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
Qiang Xue
8c2e39235f
Turn module and application into DI containers.
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Christian Nadolle
0051a1ece4
sort options by action in Migration controller
11 years ago
Christian Nadolle
706ab7f968
combine globalOptions() with local options into options($id)
...
adjust existing Console Controllers and docs
11 years ago
Carsten Brandt
740a769477
improved HelpController with messages for each command
11 years ago
resurtm
65dd8c9e7e
Add ability to downgrade migrations by the absolute apply time
11 years ago
Alexander Makarov
5cab2a8745
Fixes #2156 : `yii migrate` now automatically creates `migrations` directory if it does not exist
11 years ago
Carsten Brandt
b8558a860a
fixed migrate command output
11 years ago
Alexander Kochetov
3de7bce631
Migration command show correct directory path while it not exist
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Alexander Kochetov
995a922b01
\yii\console\controllers\MigrateController updated
11 years ago
Qiang Xue
05272b7120
doc fix.
11 years ago
Qiang Xue
a6cb556e21
Fixes #1204 : the length of primary key for migration table is too long.
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Aaron Francis
c5a34c534b
Fix Issue #934
...
Fixes issue #934 . Command is created for the selected database, not the default database.
11 years ago
Carsten Brandt
b96fd24ef5
Finished documentation of Console Helper and Controller
...
fixes #33
11 years ago
gsd
1a46b8704c
fix MigrateController
11 years ago
Qiang Xue
725d810085
Refactored console controller color option.
11 years ago
resurtm
7a7d2a9c06
CS fixes.
11 years ago
Qiang Xue
587529bf94
Always refetch the migration table definition.
12 years ago
Alexander Makarov
774a7b52cb
yiic migrate/create should not require db component
12 years ago
Alexander Makarov
d62f1b588f
yii migrate/create should not require db component
12 years ago
Qiang Xue
f72105166c
reorganized the main repo to satisfy PSR-0.
12 years ago
Alexander Kochetov
8b311ecbe7
yiic => yii additional corrections
12 years ago
Qiang Xue
0d814fa523
Moved "framework" to "iii".
12 years ago