CRM-14700 - Fix membershipType visibility in schema and tests
[civicrm-core.git] / xml / schema / Member / MembershipType.xml
index 750f1cb122d455d152ffff974820220acba77a9a..5a59a92586d071633c4daba0f06a6d0c4a935718 100644 (file)
   </field>
   <field>
     <name>duration_unit</name>
-    <type>enum</type>
-    <values>day, month, year, lifetime</values>
+    <type>varchar</type>
+    <length>8</length>
     <comment>Unit in which membership period is expressed.</comment>
+    <pseudoconstant>
+      <callback>CRM_Core_SelectValues::membershipTypeUnitList</callback>
+    </pseudoconstant>
     <add>1.5</add>
     <html>
       <type>Select</type>
   </field>
   <field>
     <name>period_type</name>
-    <type>enum</type>
-    <values>rolling, fixed</values>
+    <type>varchar</type>
+    <length>8</length>
     <comment>Rolling membership period starts on signup date. Fixed membership periods start on fixed_period_start_day.</comment>
+    <pseudoconstant>
+      <callback>CRM_Core_SelectValues::periodType</callback>
+    </pseudoconstant>
     <add>1.5</add>
   </field>
   <field>
     <length>64</length>
     <add>1.5</add>
     <pseudoconstant>
-      <optionGroupName>visibility</optionGroupName>
+      <callback>CRM_Core_SelectValues::memberVisibility</callback>
     </pseudoconstant>
     <html>
       <type>Select</type>