-
Notifications
You must be signed in to change notification settings - Fork 34
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
Conversation
<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" |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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.
32ee115
to
ef2770c
Compare
|
||
<addNotNullConstraint columnDataType="VARCHAR(3)" | ||
columnName="first_currency" | ||
tableName="series_sales" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Мне лень доделывать и тебя просить тоже не хочется. Но в следующий раз, когда будешь писать миграцию, старайся выстраивать атрибуты в некой логичной последовательности -- сначала название таблицы, а затем название колонки, а потом ее тип. Мелочь, конечно :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
После мерджа другой твоей миграции, теперь появился конфликт. Также необходимо заскошить два коммита,
096678d
to
7413819
Compare
7413819
to
22d16c1
Compare
Конфликт разрулил, засквошил. |
Changes Unknown when pulling 22d16c1 on cssru:gh467_transaction_null_price into * on php-coder:master*. |
Merged in d864d2d commit. |
Addressed to #467