Chris Harris
ae83dd0524
Fixes #13128 : Fixed incorrect position of {pos} string in ColumnSchemaBuilder `__toString`
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Alexander Makarov
0061692e60
Replaced unnecessary double quotes with single quotes
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
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
33d51825c0
Fixed order of column options in curbid\ColumnSchemaBuilder
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
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
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
0407407b76
fix coding style to follow PSR-2
9 years ago
Matvey Vasenin
135803b890
correct getColumnDefinition for cubrid
9 years ago
Matvey Vasenin
341e16645a
add cubrid support
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
pana1990
3f7ffd6707
Improved `SchemaBuilder` docs, refactored code
9 years ago
Matvey Vasenin
b456f699cc
Implemented `SchemaBuilder`
9 years ago
Alexander Makarov
c0e448bacb
Changed CUBRID type for Double
10 years ago
Alexander Makarov
5870a74672
Added Schema::DOUBLE to represent ANSI SQL Double Precision
10 years ago
Carsten Brandt
a375a62070
bump minimum required cubrid version
...
there is no reliable way to determine the cubrid PDO extension version used
and also no reliable way to detect which combination of server and client produces wrong behavior.
By requiering 9.3 or higher in both client and server we can be sure it works.
fixes #852
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
43333d9cad
Implemented master balancing.
10 years ago
Qiang Xue
e67d0b3c39
WIP
10 years ago
Qiang Xue
2018503c8d
WIP
10 years ago
Carsten Brandt
1085f1bd9b
cleanup after #4092
...
fixes #4086
10 years ago
Carsten Brandt
5d0452b2ae
rename ColumnSchema::typecast to phpTypecast
10 years ago
Carsten Brandt
8a70d9fbd1
rename column schema typecast method
10 years ago
Carsten Brandt
6a48f68955
split typecast method into two
...
one method for fetching data and one for sending to db.
fixes #2287
10 years ago
Carsten Brandt
651e6a3feb
added support for BIT default values
...
fixes #422
10 years ago
Carsten Brandt
4f95fcd91f
added unit tests for schema detection
...
fixed some issues with schema detection
10 years ago
Carsten Brandt
6ad244185a
missing return
...
[ci skip]
10 years ago
Carsten Brandt
cc8a8360cb
added unit test and notes about dbms specific settings
10 years ago
Qiang Xue
f5dbd9a084
Fixes #3564 : Fixed the bug that primary key columns should not take default values from schema
10 years ago
Alexander Makarov
8886fb235f
Fixed handleException method visibility, removed unnecessary slashes from FQN
11 years ago
Alexander Makarov
6cfc949691
Added CUBRID support for throwing integrity exception
11 years ago
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
11 years ago