Sergey Makinen
4e176ca325
Fixes #15108 : Fixed yii\db\Schema::getSchemaNames() for MSSQL and added tests for all DBMSes
2017-11-07 19:20:14 +03:00
Robert Korulczyk
5a8c3d537b
Enable phpdoc_summary rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
2017-08-21 01:58:49 +03:00
Robert Korulczyk
12eb936083
Enable heredoc_to_nowdoc rule in php-cs-fixer ( #14419 )
2017-07-10 13:18:52 +03:00
Sergey Makinen
164d3c83e9
Have I fixed these phpdocs? Let’s see…
2017-07-03 15:10:48 +03:00
Sergey Makinen
452974cab3
Mark not supported constraint retrieving methods
2017-06-28 21:40:52 +03:00
Sergey Makinen
c8856ccd4e
Fix merging issues & CS
2017-06-17 01:02:01 +03:00
Sergey Makinen
f820d2ca36
Merge branch 'master' into db-constraints
2017-06-16 16:52:43 +03:00
Robert Korulczyk
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
Tigrov
2b7e8be1e8
Fixes #14192 : Fixed wrong default null value for TIMESTAMP when using PostgreSQL
2017-06-11 18:48:15 +03:00
Carsten Brandt
be658f82bf
release version 2.0.12
2017-06-05 16:33:41 +02:00
Sergey Makinen
73ac13e6d7
Implement retrieving dbms constraints
2017-05-15 20:55:25 +03:00
Insolita
28d8fa66fc
Fixes #14012 : yii\db\pgsql\Schema::findViewNames() was skipping materialized views
2017-04-21 02:23:51 +03:00
Bob Olde Hampsink
0ea45c78a8
Fixes #13571 : Fix yii\db\mssql\QueryBuilder::checkIntegrity for all tables
2017-02-22 16:57:32 +03:00
João Pedro Pereira
3692941ead
Fixes #11464 : Foreign key name is not provided by schema
2017-01-16 00:27:20 +03:00
Klimov Paul
0a978f9d1e
Fix fetching schema information for pgsql when PDO::ATTR_CASE is set
2017-01-05 17:54:37 +02:00
Klimov Paul
8f5f540455
Fix fetching table schema for pgsql when PDO::ATTR_CASE is set
2016-12-19 17:10:34 +02:00
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed boolean to bool and integer to int in phpdoc
2016-11-07 02:51:39 +03:00
Evgeniy
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
Carsten Brandt
ee92cfa7ba
release version 2.0.9
2016-07-11 15:36:42 +02:00
Carsten Brandt
7fb447506d
fix mixed case column names for unique indexes in postgres
...
fixes #10613
2016-07-06 00:11:07 +02:00
Ricardo Pérez
33dfddd0c2
Fixes #8644 : Fixed trying to ENABLE/DISABLE TRIGGER ALL on a view in PostgreSQL
2016-06-19 15:33:00 +03:00
Nikola Kovacs
9d327baa8b
coding style fixes
2016-05-26 11:19: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
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
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
Jan Siqueira
f9473ebc61
Fix default value parsing in pgsql\Schema for null values
...
Fixes #10692
close #10694
2016-02-07 20:07:17 +01:00
Alexander Makarov
5cecb09c1b
Fixes #9443 : Added unsigned() to ColumnSchemaBuilder
2015-12-26 15:20:21 +03:00
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
2015-12-02 23:15:28 +02: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
Matvey Vasenin
3cc8c09898
some test case added
2015-08-17 10:17:51 +03:00
Alexander Mohorev
ae42a054bb
PSR-2 spaces, commas, etc
2015-06-09 00:05:06 +03:00
Carsten Brandt
ef662b57be
added missing @since annotations
2015-04-24 12:09:40 +02:00
Klimov Paul
60aa5f3eb9
Redundant checks at yii\db\oci\Schema::insert() and yii\db\pgsql\Schema::insert() removed
2015-04-14 11:59:58 +03:00
Paul Klimov
4e8ee7b001
Use RETURNING for inserts for pgsql and oci to support PKs with a custom default value expression
2015-04-13 17:11:00 +03:00
Jan Waś
ced423b601
Fixes #8012 : Fixed fetching multiple relations between two tables for pgsql
2015-04-09 00:59:56 +03:00
John Was
901d640b55
Fixes #7973 : Added Schema::getSchemaNames method
2015-04-03 01:03:49 +03:00
Alexander Makarov
9f8ca6b3db
Removed join according to https://github.com/yiisoft/yii2/issues/7958#issuecomment-88872600
2015-04-02 16:17:19 +03:00
Jan Was
356d1b98a7
fix fetching pgsql indexes for older server versions
2015-04-02 12:35:24 +02:00
Jan Was
ec7bbe1914
fix fetching pgsql constraints for older server versions
2015-04-02 07:25:38 +02:00
John Was
664958548f
fix oci\Schema::findConstraints() and pgsql\Schema::findTableNames(); added missing view to oci tests
2015-03-30 23:51:53 +02:00
John Was
4d1ca9ff17
Fixes #7831 : Add order when fetching database table names and constraints
2015-03-30 22:18:56 +03:00
John Was
29304a185a
Fixes #7833 : Support (materialized) views and foreign tables along normal tables when fetching table schema
2015-03-30 19:01:12 +03:00
Jan Was
48255a446d
Fixes #7867 : Fixes findUniqueIndexes not to perform any processing on unique index on function for pgsql, Implemented findUniqueIndexes for oci and mssql
2015-03-30 18:01:30 +03:00
Alexander Makarov
5870a74672
Added Schema::DOUBLE to represent ANSI SQL Double Precision
2015-02-25 16:01:37 +03:00
Alexander Mohorev
bb8550886e
PHP type casting
2014-10-25 15:30:03 +03:00
Carsten Brandt
78b5c7db66
fixed boolean handling for PostgreSQL
...
- do not allow boolean values for integer columns
- use native boolean type with boolean values
- removed workaround that turned out to be wrong when schema and values
are used correctly. Workaround resulted from wrong usage of boolean
values before.
fixes #4672
2014-08-28 11:20:17 +02:00
Carsten Brandt
c6274acf6c
ensure postgres boolean values are handled correctly
...
also fixed an issue with default value loading of bool columns.
fixes #3489 , fixes #4085 , fixes #3920
related to #4672
2014-08-12 02:19:53 +02:00