Carsten Brandt
be658f82bf
release version 2.0.12
7 years ago
SilverFire - Dmitry Naumenko
7a2737105b
Updated PHPdoc
8 years ago
SilverFire - Dmitry Naumenko
2d0e3fb9ef
Fixed Oracle SQL queries with `IN` condition and more than 1000 parameters
8 years ago
Sergey Makinen
454f0a9301
Fixes #13807 : Fixed `yii\db\QueryBuilder` to inherit subquery params when building a `INSERT INTO ... SELECT` query
8 years ago
Sergey Makinen
a9fb0171f7
Fixes #13745 : `SQLSTATE[HY093]: Invalid parameter number: parameter was not defined` in MSSQL and bug fixes in `yii\db\QueryBuilder::buildLikeCondition()`
8 years ago
Sergey Makinen
9a915ba10c
Fixes #8120 : Fixes LIKE special characters escaping for Cubrid/MSSQL/Oracle/SQLite in `yii\db\QueryBuilder`
8 years ago
Alex
6db6a2ddbe
Fixes #13418 : Fixed `QueryBuilder::batchInsert()` if $rows is `\Generator`
8 years ago
Nikolay Oleynikov
323568c2e9
Remove trailing spaces from sources and tests ( #13621 ) [skip ci]
8 years ago
PowerGamer1
37b8cbb2d0
Fixes #12758 : Added the ability to use instances of `\yii\db\Query` class as values in the `\yii\db\QueryBuilder::insert()` method
8 years ago
voroks
25f08afc96
Fixes #8293 : `yii\db\Query` can be passed to `insert` method in `yii\db\QueryBuilder`
8 years ago
João Pedro Pereira
3692941ead
Fixes #11464 : Foreign key name is not provided by schema
8 years ago
Chris Harris
ae83dd0524
Fixes #13128 : Fixed incorrect position of {pos} string in ColumnSchemaBuilder `__toString`
8 years ago
Zlakomanov Alexander
b8bf0d0c0c
added hint into foreign keys query for oracle 11g optimisation
...
update oci tests
improved varible name
Closes #13122
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Robert Korulczyk
104712103b
Fixes #11693 : Handle QueryBuilder::batchInsert() calls with no data to insert. ( #11812 )
8 years ago
cuiliang
c0df003ac0
merge from master
8 years ago
Nikola Kovacs
9d327baa8b
coding style fixes
8 years ago
SilverFire - Dmitry Naumenko
a23cbda185
Code style fixed
8 years ago
Alexander Makarov
27866bf9d6
Changed name to append(), fixed phpdoc, added changelog
8 years ago
Chris Harris
66eabda770
Fixes #11195 : Added ability to append custom string to schema builder column definition
8 years ago
SSiwek
5fc46d900b
Moved setting of isPrimaryKey #11484
9 years ago
Carsten Brandt
731769241b
release version 2.0.8
9 years ago
SSiwek
5f8881cfbd
#11428 (oci) speedup SQL SELECT in findColumns
9 years ago
Carsten Brandt
edd6e719bb
added missing since annotations and removed duplicate line
9 years ago
Carsten Brandt
627233715b
proper `@since` annotations
9 years ago
SilverFire - Dmitry Naumenko
15432971d6
db/ColumnSchemaBuilder::buildCommentString() returns empty string by default
9 years ago
SilverFire - Dmitry Naumenko
0fe27b9d3b
Refactored code in PR #9441
9 years ago
Chris Harris
5316576361
Fixes `after()` column string builder ( #11362 )
9 years ago
PowerGamer1
73eb62a3cd
DBMS specific workarounds for unsupported SQL92 form of `SELECT EXISTS()` ( #11369 )
9 years ago
Chris Harris
e8c3f6cc6f
Fixing tests
9 years ago
Chris Harris
5c4001d84b
Schema Builder Patterns Excel document in /docs folder (temp storage).
...
Fixed some schema builder patterns.
Added more information to upgrade docs.
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
81ff4752d9
Added CHECK modifier to PK schema pattern. Modified UNSIGNED tests to not include modifier by default (i.e. only present when testing DBMSes that support it).
9 years ago
Chris Harris
96fa375b16
Refactored to a more functional way of accessing database connection
9 years ago
Chris Harris
6a8348da5f
AFTER column name is now escaped by safe method
9 years ago
Chris Harris
f52f60db0f
Renamed category constants
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
Chris Harris
bce61bd474
Add `after()` option to migrations schema builder
9 years ago
Alexander Makarov
5cecb09c1b
Fixes #9443 : Added `unsigned()` to `ColumnSchemaBuilder`
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
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
jeicd
c2f83da8d8
Fix phpdoc
9 years ago
Matvey Vasenin
a8ec3ebe14
add oracle support (need tested)
9 years ago
Matvey Vasenin
3cc8c09898
some test case added
9 years ago
Carsten Brandt
34d5b45b35
proper fix for #8844 , convert array before using it
...
fixes #9415
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
Carsten Brandt
6d9fe671de
various code style and whitespace adjustments
9 years ago