452974cab3
Mark not supported constraint retrieving methods
2017-06-28 21:40:52 +03:00
c8856ccd4e
Fix merging issues & CS
2017-06-17 01:02:01 +03:00
f820d2ca36
Merge branch 'master' into db-constraints
2017-06-16 16:52:43 +03:00
ba0ab403b5
Added php-cs-fixer coding standards validation to Travis CI ( #14100 )
...
* php-cs-fixer: PSR2 rule.
* php-cs-fixer: PSR2 rule - fix views.
* Travis setup refactoring.
* Add php-cs-fixer to travis cs tests.
* Fix tests on hhvm-3.12
* improve travis config
* composer update
* revert composer update
* improve travis config
* Fix CS.
* Extract config to separate classes.
* Extract config to separate classes.
* Add file header.
* Force short array syntax.
* binary_operator_spaces fixer
* Fix broken tests
* cast_spaces fixer
* concat_space fixer
* dir_constant fixer
* ereg_to_preg fixer
* function_typehint_space fixer
* hash_to_slash_comment fixer
* is_null fixer
* linebreak_after_opening_tag fixer
* lowercase_cast fixer
* magic_constant_casing fixer
* modernize_types_casting fixer
* native_function_casing fixer
* new_with_braces fixer
* no_alias_functions fixer
* no_blank_lines_after_class_opening fixer
* no_blank_lines_after_phpdoc fixer
* no_empty_comment fixer
* no_empty_phpdoc fixer
* no_empty_statement fixer
* no_extra_consecutive_blank_lines fixer
* no_leading_import_slash fixer
* no_leading_namespace_whitespace fixer
* no_mixed_echo_print fixer
* no_multiline_whitespace_around_double_arrow fixer
* no_multiline_whitespace_before_semicolons fixer
* no_php4_constructor fixer
* no_short_bool_cast fixer
* no_singleline_whitespace_before_semicolons fixer
* no_spaces_around_offset fixer
* no_trailing_comma_in_list_call fixer
* no_trailing_comma_in_singleline_array fixer
* no_unneeded_control_parentheses fixer
* no_unused_imports fixer
* no_useless_return fixer
* no_whitespace_before_comma_in_array fixer
* no_whitespace_in_blank_line fixer
* not_operator_with_successor_space fixer
* object_operator_without_whitespace fixer
* ordered_imports fixer
* php_unit_construct fixer
* php_unit_dedicate_assert fixer
* php_unit_fqcn_annotation fixer
* phpdoc_indent fixer
* phpdoc_no_access fixer
* phpdoc_no_empty_return fixer
* phpdoc_no_package fixer
* phpdoc_no_useless_inheritdoc fixer
* Fix broken tests
* phpdoc_return_self_reference fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_to_comment fixer
* phpdoc_trim fixer
* phpdoc_var_without_name fixer
* psr4 fixer
* self_accessor fixer
* short_scalar_cast fixer
* single_blank_line_before_namespace fixer
* single_quote fixer
* standardize_not_equals fixer
* ternary_operator_spaces fixer
* trailing_comma_in_multiline_array fixer
* trim_array_spaces fixer
* protected_to_private fixer
* unary_operator_spaces fixer
* whitespace_after_comma_in_array fixer
* `parent::setRules()` -> `$this->setRules()`
* blank_line_after_opening_tag fixer
* Update finder config.
* Revert changes for YiiRequirementChecker.
* Fix array formatting.
* Add missing import.
* Fix CS for new code merged from master.
* Fix some indentation issues.
2017-06-12 12:25:45 +03:00
2b7e8be1e8
Fixes #14192 : Fixed wrong default null value for TIMESTAMP when using PostgreSQL
2017-06-11 18:48:15 +03:00
be658f82bf
release version 2.0.12
2017-06-05 16:33:41 +02:00
73ac13e6d7
Implement retrieving dbms constraints
2017-05-15 20:55:25 +03:00
28d8fa66fc
Fixes #14012 : yii\db\pgsql\Schema::findViewNames() was skipping materialized views
2017-04-21 02:23:51 +03:00
6db6a2ddbe
Fixes #13418 : Fixed QueryBuilder::batchInsert() if $rows is \Generator
2017-02-24 00:28:27 +03:00
a182ce57fc
Fixes for issues found with Static Code Analysis with Php Inspections (EA Extended) ( #13606 )
...
* Php Inspections (EA Extended): language level migration fixes
* Php Inspections (EA Extended): instanceof a trait always return false
* Php Inspections (EA Extended): fixed preg_quote (/ is not escaped by default)
* Php Inspections (EA Extended): fixed a greedy regex
* Php Inspections (EA Extended): refereted instanceof self in a trait
* Php Inspections (EA Extended): revert language level changes in requirements checker
* Php Inspections (EA Extended): revert language level changes in requirements checker
* Php Inspections (EA Extended): more greedy regexes fixed
2017-02-22 17:07:52 +03:00
0ea45c78a8
Fixes #13571 : Fix yii\db\mssql\QueryBuilder::checkIntegrity for all tables
2017-02-22 16:57:32 +03:00
30b7fc8dc1
Fixes #13577 : yii\db\QueryBuilder::truncateTable should work consistent over all databases
2017-02-20 23:38:50 +03:00
aeb6231d92
Fixes #13582 : PK column in yii\db\pgsql\resetSequence() was not quoted properly
2017-02-19 17:35:59 +03:00
25f08afc96
Fixes #8293 : yii\db\Query can be passed to insert method in yii\db\QueryBuilder
2017-01-28 23:47:26 +03:00
3692941ead
Fixes #11464 : Foreign key name is not provided by schema
2017-01-16 00:27:20 +03:00
0a978f9d1e
Fix fetching schema information for pgsql when PDO::ATTR_CASE is set
2017-01-05 17:54:37 +02:00
8f5f540455
Fix fetching table schema for pgsql when PDO::ATTR_CASE is set
2016-12-19 17:10:34 +02:00
4aa935e69e
Fixes #12055 : Changed boolean to bool and integer to int in phpdoc
2016-11-07 02:51:39 +03:00
ad796dbf22
#11912 : Postgresql negative default values support for integer/float/decimal columns ( #11933 )
...
* fixes #11912 : Postgresql negative default values support for integer/float/decimal columns
* added more tests
* updated CHANGELOG.md
2016-07-11 23:49:43 +02:00
ee92cfa7ba
release version 2.0.9
2016-07-11 15:36:42 +02:00
7fb447506d
fix mixed case column names for unique indexes in postgres
...
fixes #10613
2016-07-06 00:11:07 +02:00
104712103b
Fixes #11693 : Handle QueryBuilder::batchInsert() calls with no data to insert. ( #11812 )
2016-06-25 15:51:09 +03:00
33dfddd0c2
Fixes #8644 : Fixed trying to ENABLE/DISABLE TRIGGER ALL on a view in PostgreSQL
2016-06-19 15:33:00 +03:00
9d327baa8b
coding style fixes
2016-05-26 11:19:32 +02:00
6b607d078f
#11498 : Fixed unable to saved serialized object into PostgreSQL binary column ( #11499 )
...
#11498 : Fixed unable to saved serialized object into PostgreSQL binary column
2016-05-06 11:04:27 +02:00
15432971d6
db/ColumnSchemaBuilder::buildCommentString() returns empty string by default
2016-04-20 09:26:07 +03:00
0fe27b9d3b
Refactored code in PR #9441
2016-04-19 17:48:25 +03:00
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
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
51b99320bd
Sqlite specific schema builder class actually gets loaded now
2016-02-20 06:53:31 -08:00
8c0b075bed
Merge branch '9340-add-after-method-to-migrations-schema-builder' into 9562-add-char-datatype
2016-02-20 01:59:00 -08:00
eaeb926768
Adds char datatype to framework
2016-02-20 01:52:23 -08:00
0400eb9cee
Resolved merge conflict in changelog
2016-02-18 02:34:02 -08:00
f9473ebc61
Fix default value parsing in pgsql\Schema for null values
...
Fixes #10692
close #10694
2016-02-07 20:07:17 +01:00
bce61bd474
Add after() option to migrations schema builder
2015-12-28 06:34:46 -08:00
5cecb09c1b
Fixes #9443 : Added unsigned() to ColumnSchemaBuilder
2015-12-26 15:20:21 +03:00
cd87d67f34
Global DOCS update: ~~~ replaced with ```
2015-12-02 23:15:28 +02:00
1b3770fd21
Use === instead of == where possible
2015-10-10 01:04:35 +03:00
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
3cc8c09898
some test case added
2015-08-17 10:17:51 +03:00
abc7dbbf0f
added missing @since annotations
2015-08-04 12:40:12 +02:00
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
8cfc89b21c
adjusted pgsql/QueryBuilder batchInsert to match parent implementation
...
this also fixes #8551
2015-08-02 23:20:52 +02:00
a2568d1ec8
updated some comments and @since annotations
2015-08-02 19:56:49 +02:00
6d9fe671de
various code style and whitespace adjustments
2015-08-02 00:27:19 +02:00
3f7ffd6707
Improved SchemaBuilder docs, refactored code
2015-07-08 15:39:34 +03:00
b456f699cc
Implemented SchemaBuilder
2015-07-08 15:38:21 +03:00
9c4c984200
improved docs and changelog for #8903
2015-07-02 15:20:32 +02:00
db12282e59
\yii\db\pgsql\QueryBuilder add createIndex() for the creating specific indexes
...
close #8903
2015-07-02 15:05:33 +02:00
ae42a054bb
PSR-2 spaces, commas, etc
2015-06-09 00:05:06 +03:00