|
721 | 721 | </delete> |
722 | 722 | </rollback> |
723 | 723 | </changeSet> |
| 724 | + |
| 725 | + <changeSet id="UNIONVMS-4660-update-VP-L03-00-0110" author="gmanifavas"> |
| 726 | + |
| 727 | + <insert tableName="rule"> |
| 728 | + <column name="template_id" value="3004" /> |
| 729 | + <column name="property_names" value="RegistrationVesselCountryId" /> |
| 730 | + <column name="note" value="" /> |
| 731 | + <column name="level" value="L03" /> |
| 732 | + <column name="error_type" value="WARNING" /> |
| 733 | + <column name="disabled" value="false" /> |
| 734 | + <column name="br_id" value="VP-L03-00-0110" /> |
| 735 | + <column name="rule_id" value="30110"/> |
| 736 | + </insert > |
| 737 | + <insert tableName="context_expression"> |
| 738 | + <column name="expression" value="hasSchemeId(ids, "CFR") && hasExistingAsset(asset) && |
| 739 | + registrationVesselCountry != null && registrationVesselCountry.getID() !=null && |
| 740 | + !mdrService.isPresentInMDRList("MEMBER_STATE", registrationVesselCountry.getID().getValue(), creationDateTime)"/> |
| 741 | + <column name="failure_message" value="CFR provided but the vessel is not found in the vessel register or the information is inconsistent."/> |
| 742 | + <column name="context" value="EU"/> |
| 743 | + <column name="rule_id" value="30110"/> |
| 744 | + <column name="id" value="30110"/> |
| 745 | + </insert > |
| 746 | + |
| 747 | + <rollback> |
| 748 | + <delete tableName="context_expression"> |
| 749 | + <where>rule_id = 30110</where> |
| 750 | + </delete> |
| 751 | + <delete tableName="rule"> |
| 752 | + <where>br_id = 'VP-L03-00-0110'</where> |
| 753 | + </delete> |
| 754 | + </rollback> |
| 755 | + </changeSet> |
| 756 | + |
| 757 | + <changeSet id="UNIONVMS-4660-update-VP-L03-00-0111" author="gmanifavas"> |
| 758 | + |
| 759 | + <insert tableName="rule"> |
| 760 | + <column name="template_id" value="3004" /> |
| 761 | + <column name="property_names" value="RegistrationVesselCountryId" /> |
| 762 | + <column name="note" value="" /> |
| 763 | + <column name="level" value="L03" /> |
| 764 | + <column name="error_type" value="WARNING" /> |
| 765 | + <column name="disabled" value="false" /> |
| 766 | + <column name="br_id" value="VP-L03-00-0111" /> |
| 767 | + <column name="rule_id" value="30111"/> |
| 768 | + </insert > |
| 769 | + <insert tableName="context_expression"> |
| 770 | + <column name="expression" value="(hasSchemeId(ids, "IRCS") || hasSchemeId(ids, "EXT_MARK")) && |
| 771 | + hasExistingAsset(asset) && |
| 772 | + registrationVesselCountry != null && registrationVesselCountry.getID() !=null && |
| 773 | + !mdrService.isPresentInMDRList("MEMBER_STATE", registrationVesselCountry.getID().getValue(), creationDateTime)"/> |
| 774 | + <column name="failure_message" value="IRCS or External Marking provided but the vessel is not found in the vessel register or the information is inconsistent."/> |
| 775 | + <column name="context" value="EU"/> |
| 776 | + <column name="rule_id" value="30111"/> |
| 777 | + <column name="id" value="30111"/> |
| 778 | + </insert > |
| 779 | + |
| 780 | + <rollback> |
| 781 | + <delete tableName="context_expression"> |
| 782 | + <where>rule_id = 30111</where> |
| 783 | + </delete> |
| 784 | + <delete tableName="rule"> |
| 785 | + <where>br_id = 'VP-L03-00-0111'</where> |
| 786 | + </delete> |
| 787 | + </rollback> |
| 788 | + </changeSet> |
| 789 | + |
| 790 | + <changeSet id="UNIONVMS-4660-update-VP-L03-00-0112" author="gmanifavas"> |
| 791 | + |
| 792 | + <insert tableName="rule"> |
| 793 | + <column name="template_id" value="3004" /> |
| 794 | + <column name="property_names" value="RegistrationVesselCountryId" /> |
| 795 | + <column name="note" value="" /> |
| 796 | + <column name="level" value="L03" /> |
| 797 | + <column name="error_type" value="WARNING" /> |
| 798 | + <column name="disabled" value="false" /> |
| 799 | + <column name="br_id" value="VP-L03-00-0112" /> |
| 800 | + <column name="rule_id" value="30112"/> |
| 801 | + </insert > |
| 802 | + <insert tableName="context_expression"> |
| 803 | + <column name="expression" value="hasSchemeId(ids, "UVI") && |
| 804 | + hasExistingAsset(asset) && |
| 805 | + registrationVesselCountry != null && registrationVesselCountry.getID() !=null && |
| 806 | + !mdrService.isPresentInMDRList("MEMBER_STATE", registrationVesselCountry.getID().getValue(), creationDateTime)"/> |
| 807 | + <column name="failure_message" value="UVI is provided but the vessel is not found in the vessel register or the information is inconsistent."/> |
| 808 | + <column name="context" value="EU"/> |
| 809 | + <column name="rule_id" value="30112"/> |
| 810 | + <column name="id" value="30112"/> |
| 811 | + </insert > |
| 812 | + |
| 813 | + <rollback> |
| 814 | + <delete tableName="context_expression"> |
| 815 | + <where>rule_id = 30112</where> |
| 816 | + </delete> |
| 817 | + <delete tableName="rule"> |
| 818 | + <where>br_id = 'VP-L03-00-0112'</where> |
| 819 | + </delete> |
| 820 | + </rollback> |
| 821 | + </changeSet> |
| 822 | + |
| 823 | + <changeSet id="UNIONVMS-4660-update-VP-L03-00-0113" author="gmanifavas"> |
| 824 | + |
| 825 | + <insert tableName="rule"> |
| 826 | + <column name="template_id" value="3004" /> |
| 827 | + <column name="property_names" value="RegistrationVesselCountryId" /> |
| 828 | + <column name="note" value="" /> |
| 829 | + <column name="level" value="L03" /> |
| 830 | + <column name="error_type" value="WARNING" /> |
| 831 | + <column name="disabled" value="false" /> |
| 832 | + <column name="br_id" value="VP-L03-00-0113" /> |
| 833 | + <column name="rule_id" value="30113"/> |
| 834 | + </insert > |
| 835 | + <insert tableName="context_expression"> |
| 836 | + <column name="expression" value="hasSchemeId(ids, "ICCAT") && |
| 837 | + hasExistingAsset(asset) && |
| 838 | + registrationVesselCountry != null && registrationVesselCountry.getID() !=null && |
| 839 | + !mdrService.isPresentInMDRList("MEMBER_STATE", registrationVesselCountry.getID().getValue(), creationDateTime)"/> |
| 840 | + <column name="failure_message" value="ICCAT vessel ID is provided but the vessel is not found in the vessel register or the information is inconsistent."/> |
| 841 | + <column name="context" value="EU"/> |
| 842 | + <column name="rule_id" value="30113"/> |
| 843 | + <column name="id" value="30113"/> |
| 844 | + </insert > |
| 845 | + |
| 846 | + <rollback> |
| 847 | + <delete tableName="context_expression"> |
| 848 | + <where>rule_id = 30113</where> |
| 849 | + </delete> |
| 850 | + <delete tableName="rule"> |
| 851 | + <where>br_id = 'VP-L03-00-0113'</where> |
| 852 | + </delete> |
| 853 | + </rollback> |
| 854 | + </changeSet> |
| 855 | + |
| 856 | + <changeSet id="UNIONVMS-4660-update-VP-L03-00-0114" author="gmanifavas"> |
| 857 | + |
| 858 | + <insert tableName="rule"> |
| 859 | + <column name="template_id" value="3004" /> |
| 860 | + <column name="property_names" value="RegistrationVesselCountryId" /> |
| 861 | + <column name="note" value="" /> |
| 862 | + <column name="level" value="L03" /> |
| 863 | + <column name="error_type" value="WARNING" /> |
| 864 | + <column name="disabled" value="false" /> |
| 865 | + <column name="br_id" value="VP-L03-00-0114" /> |
| 866 | + <column name="rule_id" value="30114"/> |
| 867 | + </insert > |
| 868 | + <insert tableName="context_expression"> |
| 869 | + <column name="expression" value="hasSchemeId(ids, "GFCM") && |
| 870 | + hasExistingAsset(asset) && |
| 871 | + registrationVesselCountry != null && registrationVesselCountry.getID() !=null && |
| 872 | + !mdrService.isPresentInMDRList("MEMBER_STATE", registrationVesselCountry.getID().getValue(), creationDateTime)"/> |
| 873 | + <column name="failure_message" value="GFCM vessel ID is provided but the vessel is not found in the vessel register or the information is inconsistent."/> |
| 874 | + <column name="context" value="EU"/> |
| 875 | + <column name="rule_id" value="30114"/> |
| 876 | + <column name="id" value="30114"/> |
| 877 | + </insert > |
| 878 | + |
| 879 | + <rollback> |
| 880 | + <delete tableName="context_expression"> |
| 881 | + <where>rule_id = 30114</where> |
| 882 | + </delete> |
| 883 | + <delete tableName="rule"> |
| 884 | + <where>br_id = 'VP-L03-00-0114'</where> |
| 885 | + </delete> |
| 886 | + </rollback> |
| 887 | + </changeSet> |
724 | 888 | </databaseChangeLog> |
0 commit comments