Sergey Makinen
ef4dadf437
Fixes #13592 : Fixes Oracle’s `yii\db\oci\Schema::setTransactionIsolationLevel()`
8 years ago
Carsten Brandt
c19b2f7dc8
release version 2.0.11
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
nanodesu88
71d083d499
Fixes #12816 : Added `columnSchemaClass` option for `yii\db\Schema` which adds ability to specify custom `\yii\db\ColumnSchema` class
8 years ago
PowerGamer1
3c1eb55f55
PHPDoc @return fix for insert() ( #12757 ) [skip ci]
8 years ago
Robert Korulczyk
ecfaa9875d
Fix phpdoc for constants in db\Schema [skip ci] ( #12418 )
8 years ago
Carsten Brandt
38d347c9f5
fix quoting column name in case of quoted table name
...
column name was not quoted if a table name was used, that was using the
table prefix feature.
fixes #11088
close #11238
9 years ago
Chris Harris
2f91889b70
Removed `unsignedPrimaryKey()` schema builder type; now, the `unsigned()` modifier works with primary key types e.g. `pk()->unsigned()` or `bigpk()->unsigned()`.
9 years ago
Chris Harris
51b99320bd
Sqlite specific schema builder class actually gets loaded now
9 years ago
Chris Harris
eaeb926768
Adds `char` datatype to framework
9 years ago
githubjeka
2c3e9a4296
phpDoc of getTableSchema|loadTableSchema updated
9 years ago
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
9 years ago
Alexander Makarov
1b3770fd21
Use === instead of == where possible
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
a2568d1ec8
updated some comments and `@since` annotations
9 years ago
Matvey Vasenin
b456f699cc
Implemented `SchemaBuilder`
9 years ago
Paul Klimov
8e4518c81f
Doc comments updated
9 years ago
Klimov Paul
fb0062114e
Method `yii\db\Schema::refreshTableSchema()` added
9 years ago
John Was
a63fc2ff59
properly quote sequence name in Schema::getLastInsertId()
...
fixes #8483
close #8515
9 years ago
Qiang Xue
4488dbbff7
build cleanup [skip ci]
10 years ago
Klimov Paul
faf7bb73fa
redundant call chain removed
10 years ago
Carsten Brandt
ef662b57be
added missing `@since` annotations
10 years ago
Nikola Kovacs
f11bdfa2a7
Grammar fix: followings -> following
10 years ago
Klimov Paul
a0b8f74d2e
`yii\db\Schema::insert()` primary key value composition fixed
10 years ago
Klimov Paul
6751a80ea0
`yii\db\Schema::insert()` now returns primary key value for empty sequence
10 years ago
Klimov Paul
767276362d
Redundant typecast at `yii\db\Schema::insert()` removed
10 years ago
Paul Klimov
31ef4c4504
Command execution at `yii\db\oci\Schema::insert()` fixed
10 years ago
Paul Klimov
4e8ee7b001
Use RETURNING for inserts for pgsql and oci to support PKs with a custom default value expression
10 years ago
John Was
901d640b55
Fixes #7973 : Added `Schema::getSchemaNames` method
10 years ago
John Was
4f49feee8d
fixes #7757 : in oci schema fix query results row keys case when PDO::ATTR_CASE is set to PDO::CASE_LOWER
...
added test to check support for setting PDO::ATTR_CASE and fetching table schemas
fixed fetching table schemas for mysql when PDO::ATTR_CASE is set
added tests for oci
fixed fetching composite fks for oci
improvements in oci schema parsing
removed autoIncrement detection fro oci and added test to verify that
implement batchInsert for oci
fix detecting IntegrityException for oci
fixed creating raw sql by skipping object and resource params
fix command test failing for sqlite
10 years ago
Alexander Makarov
187322052d
Fixed converting double to PHP type
10 years ago
Alexander Makarov
5870a74672
Added Schema::DOUBLE to represent ANSI SQL Double Precision
10 years ago
Alexander Makarov
7b20bdeeb2
Fixes #6279 : `yii\db\Schema::getLastInsertID()` was passing wrong default schema name to PDO
10 years ago
Qiang Xue
5fe6c55d6b
Fixes #4586 : Signed bigint and unsigned int will be converted into integers when they are loaded from DB by AR
10 years ago
Carsten Brandt
92d65ab78b
fix issue with postgreSQL and batch inserting boolean values
...
fixes #4654
10 years ago
mcd.php
20774165bc
Fixes #4644 : Added `\yii\db\Schema::createColumnSchema()` to be able to customize column schema used
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Qiang Xue
6e6005b148
Refactored code.
10 years ago
Qiang Xue
fe2611186e
Fixes #4051 : Renamed `yii\caching\GroupDependency` to `TagDependency` and added support for associating multiple tags to a single cached data item
10 years ago
Qiang Xue
478380fb10
Fixed test brak.
10 years ago
Qiang Xue
43333d9cad
Implemented master balancing.
10 years ago
Qiang Xue
e67d0b3c39
WIP
10 years ago
Qiang Xue
2018503c8d
WIP
10 years ago
Carsten Brandt
6578cfbdab
updated phpdoc and classmap
10 years ago
Carsten Brandt
bbbe2a3e4b
Added support for transaction isolation levels
...
fixes #3220
10 years ago
Alexander Makarov
0c14f47f9a
Fixes #3793 : Changed inline autocomplete hints style to get more IDEs support
10 years ago
Alexander Makarov
8886fb235f
Fixed handleException method visibility, removed unnecessary slashes from FQN
11 years ago
Alexander Makarov
bea7cf8449
Moved exception handling to schema
11 years ago
Alexander Makarov
d1ec2a0241
Better naming for Schema properties
11 years ago