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
Luciano Baraglia
7d33a5d3b5
Some Code style fixes
11 years ago
Qiang Xue
87be9deaf0
refactored fixture.
11 years ago
Vladimir
d5cd6b0dfe
Update Migration.php
...
add ability to use an array in multi columns parameters
11 years ago
Qiang Xue
0c38655217
psr-4 move
11 years ago
Qiang Xue
fb3ebe7000
doc cleanup.
11 years ago
Иван Багаев
64641cbd76
Add batchInsert method to yii\db\Migration
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Carsten Brandt
7fa81949bf
various documentation changes
11 years ago
Alexander Makarov
cc0fe1b02c
code style fixes
11 years ago
sergey Gonimar
9268e7d3ac
message fix
11 years ago
sergey Gonimar
2c02bc918d
migrate command, primary key
11 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