Alexander Makarov
0061692e60
Replaced unnecessary double quotes with single quotes
2016-07-29 22:56:38 +03:00
Nikola Kovacs
9d327baa8b
coding style fixes
2016-05-26 11:19:32 +02:00
Alexander Makarov
27866bf9d6
Changed name to append(), fixed phpdoc, added changelog
2016-05-13 15:58:06 +03:00
Chris Harris
66eabda770
Fixes #11195 : Added ability to append custom string to schema builder column definition
2016-05-13 15:57:54 +03:00
Carsten Brandt
edd6e719bb
added missing since annotations and removed duplicate line
2016-04-28 03:02:17 +02:00
Carsten Brandt
627233715b
proper @since annotations
2016-04-28 02:25:32 +02:00
SilverFire - Dmitry Naumenko
15432971d6
db/ColumnSchemaBuilder::buildCommentString() returns empty string by default
2016-04-20 09:26:07 +03:00
SilverFire - Dmitry Naumenko
33d51825c0
Fixed order of column options in curbid\ColumnSchemaBuilder
2016-04-19 18:32:01 +03:00
SilverFire - Dmitry Naumenko
0fe27b9d3b
Refactored code in PR #9441
2016-04-19 17:48:25 +03:00
SilverFire - Dmitry Naumenko
c9dfc90be0
Merge branch 'methods_for_schema_builder' of https://github.com/vaseninm/yii2 into vaseninm-methods_for_schema_builder
2016-04-19 12:21:33 +03:00
Chris Harris
5316576361
Fixes after() column string builder ( #11362 )
2016-04-19 11:59:16 +03:00
PowerGamer1
73eb62a3cd
DBMS specific workarounds for unsupported SQL92 form of SELECT EXISTS() ( #11369 )
2016-04-17 17:44:52 +03:00
Chris Harris
5c4001d84b
Schema Builder Patterns Excel document in /docs folder (temp storage).
...
Fixed some schema builder patterns.
Added more information to upgrade docs.
2016-03-14 05:29:42 -07:00
Chris Harris
2f91889b70
Removed unsignedPrimaryKey() schema builder type; now, the unsigned() modifier works with primary key types e.g. pk()->unsigned() or bigpk()->unsigned().
2016-02-26 17:48:03 -08:00
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).
2016-02-22 04:06:17 -08:00
Chris Harris
96fa375b16
Refactored to a more functional way of accessing database connection
2016-02-21 05:05:54 -08:00
Chris Harris
6a8348da5f
AFTER column name is now escaped by safe method
2016-02-21 04:08:57 -08:00
Chris Harris
f52f60db0f
Renamed category constants
2016-02-21 02:06:41 -08:00
Chris Harris
51b99320bd
Sqlite specific schema builder class actually gets loaded now
2016-02-20 06:53:31 -08:00
Chris Harris
eaeb926768
Adds char datatype to framework
2016-02-20 01:52:23 -08:00
Alexander Makarov
5ab4f0f090
Better quotes usage in strings
...
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
2015-10-10 00:23:52 +03:00
jeicd
0407407b76
fix coding style to follow PSR-2
2015-10-05 13:58:47 +06:00
Matvey Vasenin
135803b890
correct getColumnDefinition for cubrid
2015-08-20 10:48:47 +03:00
Matvey Vasenin
341e16645a
add cubrid support
2015-08-19 14:49:40 +03:00
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(),
]);
```
2015-08-03 23:25:50 +02:00
Carsten Brandt
a2568d1ec8
updated some comments and @since annotations
2015-08-02 19:56:49 +02:00
pana1990
3f7ffd6707
Improved SchemaBuilder docs, refactored code
2015-07-08 15:39:34 +03:00
Matvey Vasenin
b456f699cc
Implemented SchemaBuilder
2015-07-08 15:38:21 +03:00
Alexander Makarov
c0e448bacb
Changed CUBRID type for Double
2015-02-26 02:28:59 +03:00
Alexander Makarov
5870a74672
Added Schema::DOUBLE to represent ANSI SQL Double Precision
2015-02-25 16:01:37 +03:00
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
2014-10-12 04:06:13 +02:00
mcd.php
20774165bc
Fixes #4644 : Added \yii\db\Schema::createColumnSchema() to be able to customize column schema used
2014-08-12 00:01:27 +04:00
Carsten Brandt
3a1e0f3a5c
property codestyle framework
2014-07-30 00:21:31 +02:00
Qiang Xue
43333d9cad
Implemented master balancing.
2014-07-11 22:33:36 -04:00
Qiang Xue
e67d0b3c39
WIP
2014-07-11 14:01:44 -04:00
Qiang Xue
2018503c8d
WIP
2014-07-11 12:59:32 -04:00
Carsten Brandt
1085f1bd9b
cleanup after #4092
...
fixes #4086
2014-06-29 13:29:23 +02:00
Carsten Brandt
5d0452b2ae
rename ColumnSchema::typecast to phpTypecast
2014-06-27 02:12:59 +02:00
Carsten Brandt
8a70d9fbd1
rename column schema typecast method
2014-06-26 00:11:04 +02:00
Carsten Brandt
6a48f68955
split typecast method into two
...
one method for fetching data and one for sending to db.
fixes #2287
2014-06-26 00:00:37 +02:00
Carsten Brandt
651e6a3feb
added support for BIT default values
...
fixes #422
2014-06-25 03:37:39 +02:00
Carsten Brandt
4f95fcd91f
added unit tests for schema detection
...
fixed some issues with schema detection
2014-06-25 03:09:28 +02:00
Carsten Brandt
6ad244185a
missing return
...
[ci skip]
2014-06-24 03:54:01 +02:00
Carsten Brandt
cc8a8360cb
added unit test and notes about dbms specific settings
2014-06-24 03:11:34 +02:00
Qiang Xue
f5dbd9a084
Fixes #3564 : Fixed the bug that primary key columns should not take default values from schema
2014-05-23 10:35:20 -04:00
Alexander Makarov
8886fb235f
Fixed handleException method visibility, removed unnecessary slashes from FQN
2014-05-07 20:56:51 +04:00
Alexander Makarov
6cfc949691
Added CUBRID support for throwing integrity exception
2014-05-06 19:13:54 +04:00
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
2014-03-23 20:51:09 +01:00
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
2014-03-16 10:46:21 +06:00
Qiang Xue
bea9e3fc06
Fixes #1645 : Added support for nested DB transactions
2014-02-15 22:16:09 -05:00