|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<databaseChangeLog |
| 3 | + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" |
| 4 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 5 | + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog |
| 6 | + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd"> |
| 7 | + |
| 8 | + <changeSet id="drop-michel_currency-column-from-series-table" author="php-coder" context="scheme"> |
| 9 | + |
| 10 | + <preConditions> |
| 11 | + <sqlCheck expectedResult="0"> |
| 12 | + SELECT COUNT(*) |
| 13 | + FROM series |
| 14 | + WHERE michel_currency IS NOT NULL |
| 15 | + AND michel_currency != 'EUR' |
| 16 | + </sqlCheck> |
| 17 | + </preConditions> |
| 18 | + |
| 19 | + <dropColumn tableName="series" columnName="michel_currency" /> |
| 20 | + |
| 21 | + <rollback> |
| 22 | + <addColumn tableName="series"> |
| 23 | + <column name="michel_currency" type="VARCHAR(3)" afterColumn="michel_price" /> |
| 24 | + </addColumn> |
| 25 | + </rollback> |
| 26 | + |
| 27 | + </changeSet> |
| 28 | + |
| 29 | + <changeSet id="drop-scott_currency-column-from-series-table" author="php-coder" context="scheme"> |
| 30 | + |
| 31 | + <preConditions> |
| 32 | + <sqlCheck expectedResult="0"> |
| 33 | + SELECT COUNT(*) |
| 34 | + FROM series |
| 35 | + WHERE scott_currency IS NOT NULL |
| 36 | + AND scott_currency != 'USD' |
| 37 | + </sqlCheck> |
| 38 | + </preConditions> |
| 39 | + |
| 40 | + <dropColumn tableName="series" columnName="scott_currency" /> |
| 41 | + |
| 42 | + <rollback> |
| 43 | + <addColumn tableName="series"> |
| 44 | + <column name="scott_currency" type="VARCHAR(3)" afterColumn="scott_price" /> |
| 45 | + </addColumn> |
| 46 | + </rollback> |
| 47 | + |
| 48 | + </changeSet> |
| 49 | + |
| 50 | + <changeSet id="drop-gibbons_currency-column-from-series-table" author="php-coder" context="scheme"> |
| 51 | + |
| 52 | + <preConditions> |
| 53 | + <sqlCheck expectedResult="0"> |
| 54 | + SELECT COUNT(*) |
| 55 | + FROM series |
| 56 | + WHERE gibbons_currency IS NOT NULL |
| 57 | + AND gibbons_currency != 'GBP' |
| 58 | + </sqlCheck> |
| 59 | + </preConditions> |
| 60 | + |
| 61 | + <dropColumn tableName="series" columnName="gibbons_currency" /> |
| 62 | + |
| 63 | + <rollback> |
| 64 | + <addColumn tableName="series"> |
| 65 | + <column name="gibbons_currency" type="VARCHAR(3)" afterColumn="gibbons_price" /> |
| 66 | + </addColumn> |
| 67 | + </rollback> |
| 68 | + |
| 69 | + </changeSet> |
| 70 | + |
| 71 | + <changeSet id="drop-yvert_currency-column-from-series-table" author="php-coder" context="scheme"> |
| 72 | + |
| 73 | + <preConditions> |
| 74 | + <sqlCheck expectedResult="0"> |
| 75 | + SELECT COUNT(*) |
| 76 | + FROM series |
| 77 | + WHERE yvert_currency IS NOT NULL |
| 78 | + AND yvert_currency != 'EUR' |
| 79 | + </sqlCheck> |
| 80 | + </preConditions> |
| 81 | + |
| 82 | + <dropColumn tableName="series" columnName="yvert_currency" /> |
| 83 | + |
| 84 | + <rollback> |
| 85 | + <addColumn tableName="series"> |
| 86 | + <column name="yvert_currency" type="VARCHAR(3)" afterColumn="yvert_price" /> |
| 87 | + </addColumn> |
| 88 | + </rollback> |
| 89 | + |
| 90 | + </changeSet> |
| 91 | + |
| 92 | +</databaseChangeLog> |
0 commit comments