Carsten Brandt
be658f82bf
release version 2.0.12
7 years ago
Bob Olde Hampsink
8192f84850
Fix SQLite resetSequence inconsistencies ( #13755 , #13630 )
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
Bob Olde Hampsink
fab53b4a6e
Fixes #13582 : Added tests for all `yii\db\QueryBuilder::resetSequence` implementations, fixed SQLite implementation
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
Alexander Makarov
7cea46bcb4
Changed SQLite fix #11652 according to https://github.com/yiisoft/yii2/pull/11653#issuecomment-224016289
8 years ago
Boudewijn Vahrmeijer
0a60466729
Fixes #11527 : Fixed `bigPrimaryKey()` for SQLite
8 years ago
Nikola Kovacs
9d327baa8b
coding style fixes
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
Carsten Brandt
731769241b
release version 2.0.8
9 years ago
Carsten Brandt
edd6e719bb
added missing since annotations and removed duplicate line
9 years ago
SilverFire - Dmitry Naumenko
15432971d6
db/ColumnSchemaBuilder::buildCommentString() returns empty string by default
9 years ago
SilverFire - Dmitry Naumenko
1aa2f1d927
Removed sqlite/ColumnSchemaBuilder::comment() method override
9 years ago
SilverFire - Dmitry Naumenko
0fe27b9d3b
Refactored code in PR #9441
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
Carsten Brandt
af75262541
fixed sqlite bigPk creation
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
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
Carsten Brandt
e43c41c9ea
db layer phpdoc fixes
9 years ago
Carsten Brandt
8680f0f1d8
BC way of merging expression params of orderBy and groupBy
...
this logic should be moved to the sub methods in 2.1
9 years ago
Chris Harris
457002c216
Sqlite specific schema builder class actually gets loaded now
9 years ago
Chris Harris
bce61bd474
Add `after()` option to migrations schema builder
9 years ago
Hereward Mills
a4acd048bc
Add @throws tags to PHPDocs.
9 years ago
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
9 years ago
Alexander Makarov
cddb036cf9
Fixes #9790 : Fixed `yii\db\sqlite\QueryBuilder` to generate proper SQL for UNION
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
AIZAWA, Hina
0f2a77ed36
Fixes #9442 : Fixed `yii\db\Migration::renameTable()` caused fatal error when using SQLite driver
9 years ago
Matvey Vasenin
afda00d434
add sqllite dummy
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
╃巡洋艦㊣
586684b050
2.0.5 bf7edc5
9 years ago
pana1990
3f7ffd6707
Improved `SchemaBuilder` docs, refactored code
9 years ago
Matvey Vasenin
b456f699cc
Implemented `SchemaBuilder`
9 years ago
Alexander Mohorev
789cdfea86
PSR-2 switch statement
9 years ago
Alexander Mohorev
2288f339e6
Parameter type is not compatible with declaration
9 years ago
John Was
4d1ca9ff17
Fixes #7831 : Add order when fetching database table names and constraints
10 years ago
Alexander Makarov
5870a74672
Added Schema::DOUBLE to represent ANSI SQL Double Precision
10 years ago
Jan Waś
1e5f159f78
override only mssql and sqlite QueryBuilder; throw an exception for composite in condition with a subquery
10 years ago
Carsten Brandt
f177f1701a
fixed failure on sqlite version check
...
ensure PDO instance has been created at this point
10 years ago
Alexander Kochetov
fff48ef76f
Correct SQLite version checking
10 years ago
╃巡洋艦㊣
1468bd4d3d
version 2.0.1 84b42ab
10 years ago
Alexander Mohorev
bb8550886e
PHP type casting
10 years ago