Skip to content

Fix issue with null value in first price/first currency. #482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

cssru
Copy link
Contributor

@cssru cssru commented Sep 28, 2016

Addressed to #467

@coveralls
Copy link

Coverage Status

Coverage remained the same at 75.979% when pulling 32ee115 on cssru:gh467_transaction_null_price into 24c8a49 on php-coder:master.

<changeSet id="add-not_null_constraints-to-first-price" author="cssru" context="scheme">
<comment>Adds not null constraints to first_price and first_currency columns</comment>

<addNotNullConstraint columnDataType="CURRENCY"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We decided to not use CURRENCY pseudo-type because it doesn't work for us on MySQL. See #461

http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.0.xsd">

<changeSet id="add-not_null_constraints-to-first-price" author="cssru" context="scheme">
<comment>Adds not null constraints to first_price and first_currency columns</comment>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to remove this comment.

@cssru cssru force-pushed the gh467_transaction_null_price branch from 32ee115 to ef2770c Compare October 5, 2016 20:03
@coveralls
Copy link

Coverage Status

Coverage remained the same at 75.979% when pulling ef2770c on cssru:gh467_transaction_null_price into 68c79a7 on php-coder:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 75.979% when pulling 096678d on cssru:gh467_transaction_null_price into 68c79a7 on php-coder:master.


<addNotNullConstraint columnDataType="VARCHAR(3)"
columnName="first_currency"
tableName="series_sales" />
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Мне лень доделывать и тебя просить тоже не хочется. Но в следующий раз, когда будешь писать миграцию, старайся выстраивать атрибуты в некой логичной последовательности -- сначала название таблицы, а затем название колонки, а потом ее тип. Мелочь, конечно :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Owner

@php-coder php-coder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

После мерджа другой твоей миграции, теперь появился конфликт. Также необходимо заскошить два коммита,

@cssru cssru force-pushed the gh467_transaction_null_price branch from 096678d to 7413819 Compare October 10, 2016 20:54
@cssru cssru force-pushed the gh467_transaction_null_price branch from 7413819 to 22d16c1 Compare October 10, 2016 20:56
@cssru
Copy link
Contributor Author

cssru commented Oct 10, 2016

Конфликт разрулил, засквошил.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 22d16c1 on cssru:gh467_transaction_null_price into * on php-coder:master*.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 75.979% when pulling 22d16c1 on cssru:gh467_transaction_null_price into b0d0e4a on php-coder:master.

@php-coder
Copy link
Owner

Merged in d864d2d commit.

@php-coder php-coder closed this Oct 10, 2016
@cssru cssru deleted the gh467_transaction_null_price branch October 10, 2016 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants