Brandon Kelly
47674e1266
#13879 : Added yii\db\Migration::upsert()
7 years ago
Klimov Paul
65f6b59b35
`@inheritdoc` notation changed
7 years ago
Ankit Padia
9944d7a49f
Fixed wrong description for param $table in addCommentOnTable() ( #15387 ) [skip ci]
7 years ago
Alexander Makarov
2d672b6722
release version 2.0.13
7 years ago
Alexander Makarov
fb23b0d0ea
Code style fixes
7 years ago
Alexander Makarov
1f24fd35b9
Fixes #14910 : adjusted safeUp()/safeDown() docs [skip ci]
7 years ago
santilin
6eae7fba59
Fixed typo: an => a in batchInsert [skip ci]
7 years ago
SilverFire - Dmitry Naumenko
5aedb9e040
Fixed typo in PHPDocs
7 years ago
Francis Lavoie
9588c8f5a4
Fixes #13853 : Added `yii\db\Migration::$compact` as well as `yii\console\controllers\BaseMigrateController::$compact` to allow making the migration console output more compact
7 years ago
Robert Korulczyk
5a8c3d537b
Enable `phpdoc_summary` rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
7 years ago
Thiago Talma
1d062100b6
Fixes #13787 : Added `yii\db\Migration::$maxSqlOutputLength` that allows limiting number of characters for outputting SQL
7 years ago
Alexander Makarov
902c2b563d
Fixes #13831 : Added more info about transactions in migrations to phpdoc [skip ci]
8 years ago
Carsten Brandt
a3b6dfbb7b
Catch `\Throwable` in critical places
...
Added catch `\Throwable` to be compatible with PHP7.
Added it in cases where object state needs to be kept consistent.
Mainly on transactions but also some other places where some values are
reset before exiting.
Most of them could probably be refactored by using `finally` in 2.1, as
that requires PHP 5.5.
fixes #12619
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Boudewijn Vahrmeijer
32f4dc8997
Fixes #5385 : links created from classes to corresponding guide articles ( #12920 )
8 years ago
rhertogh
f696a28c79
display the table when dropping index
...
display the table, helping when dropping multiple indices with the same name
8 years ago
__FresHmaN
b764a7a21e
Disable slaves when execute migrations to resolve master-slave replication no-sync ( #12460 )
...
Resolve #12446
8 years ago
__FresHmaN
af189518a3
removed incorrect docblocks
8 years ago
Alexander Makarov
0061692e60
Replaced unnecessary double quotes with single quotes
8 years ago
mshutov
bb35fda6e9
Update Migration.php ( #11605 )
...
Typo in doc for safeDown
8 years ago
Carsten Brandt
edd6e719bb
added missing since annotations and removed duplicate line
9 years ago
SilverFire - Dmitry Naumenko
0fe27b9d3b
Refactored code in PR #9441
9 years ago
Alexander Makarov
5ab4f0f090
Better quotes usage in strings
...
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
9 years ago
Matvey Vasenin
341e16645a
add cubrid support
9 years ago
Matvey Vasenin
c0c380e730
add comment to migration
9 years ago
Matvey Vasenin
ce6e92b736
add comment control methods
9 years ago
Carsten Brandt
abc7dbbf0f
added missing `@since` annotations
9 years ago
Carsten Brandt
681db52ba6
refactored SchemaBuilder
...
- rename class to ColumnSchemaBuilder as this is more appropriate
- changed internal organisation to match how the rest of schema related classes work
- the ColumnSchemaBuilder is now created the same way as QueryBuilder is
- removed static call magic and method annotations, now real methods are called as they are
- the whole code works on objects in a db context now instead of setting database connection in global state
- trait is now used by Migration by default but can be used in other contexts as well
Migration usage is now as follows:
```php
$this->createTable('example_table', [
'id' => $this->primaryKey(),
'name' => $this->string(64)->notNull(),
'type' => $this->integer()->notNull()->defaultValue(10),
'description' => $this->text(),
'rule_name' => $this->string(64),
'data' => $this->text(),
'created_at' => $this->datetime()->notNull(),
'updated_at' => $this->datetime(),
]);
```
9 years ago
Carsten Brandt
6e3da6b329
various phpdoc fixes
9 years ago
Yasser Hassan
1df3bb29ea
Clarify escaping column name quoting in createIndex()
...
Added information about when column names are not quoted when using createIndex() as discussed in #9017 . "left parenthesis" was used rather than just "parenthesis" to reflect the exact code working.
9 years ago
Klimov Paul
e683e3e79d
Schema refresh moved to `Migration::init()`.
9 years ago
Klimov Paul
6ea19e8f45
Schema refreshing added to `yii\db\Migration::execute()`
9 years ago
Carsten Brandt
8c3dce88dd
fixed phpdoc
10 years ago
resurtm
233388fdd6
Remove non-necessary leading slash in use operator.
10 years ago
Qiang Xue
d341bf02b4
Fixes #6398 : Added support for specifying dependent component in terms of a configuration array for classes such as `DbCache`
10 years ago
Qiang Xue
385e13978d
Fixes #4800 .
10 years ago
Qiang Xue
3f597fd45d
updated doc [skip ci]
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Klimov Paul
166465ec7a
`MigrationInterface` extracted
10 years ago
Paul K
b09d0f12af
overwrite -> override
11 years ago
Carsten Brandt
3c400dbca8
fixed file PHPdoc
...
issue #3026
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago
Qiang Xue
8e11ad0360
refactored code to use Instance::ensure()
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
Carsten Brandt
f9024dbec1
fixed Migration::execute() to use params correctly
11 years ago
Sergey Gonimar
ee2a6b7e76
Update Migration.php
11 years ago
Qiang Xue
bea9e3fc06
Fixes #1645 : Added support for nested DB transactions
11 years ago
Carsten Brandt
262189533a
huge amount of documentation link fixes
11 years ago