Update field data type for payment_types.qcode
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 22 Nov 2017 17:01:15 +0000 (12:01 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 22 Nov 2017 17:01:15 +0000 (12:01 -0500)
make it tinytext and not required.

setup/databaseScripts/create_database_V0.0.1.sql
views/admin/settings/paymentTypes.html

index 09ae3a9..c73a34d 100644 (file)
@@ -36,7 +36,7 @@ CREATE TABLE {prefix}transactions (
 CREATE TABLE {prefix}payment_types (
     id INT NOT NULL AUTO_INCREMENT,
     name TINYTEXT NOT NULL,
-    qcode INT NULL,
+    qcode TINYTEXT NULL,
     category TEXT NOT NULL,
     amount DECIMAL(8, 2),
     notes TINYTEXT NULL,
index a7a8e82..6644db2 100644 (file)
@@ -14,9 +14,9 @@
                     </td>
                 </tr>
                 <tr>
-                    <th class="glm-required">Code:</th>
+                    <th>Code:</th>
                     <td>
-                        <input type="text" name="qcode" class="glm-form-text-input" required>
+                        <input type="text" name="qcode" class="glm-form-text-input">
                     </td>
                 </tr>
                 <tr>
@@ -74,9 +74,9 @@
                     </td>
                 </tr>
                 <tr>
-                    <th class="glm-required">Code:</th>
+                    <th>Code:</th>
                     <td>
-                        <input id="editPaymentTypeQCode" type="text" name="qcode" class="glm-form-text-input" required>
+                        <input id="editPaymentTypeQCode" type="text" name="qcode" class="glm-form-text-input">
                     </td>
                 </tr>
                 <tr>