Просмотр исходного кода

Increase test.challenge_description field length to 400 characters

Alan Lam 5 лет назад
Родитель
Сommit
60a3fa672f

+ 15 - 0
db/migrations/20211117125825_increase_challenge_description_field_length.php

@@ -0,0 +1,15 @@
+<?php
+
+use Phinx\Migration\AbstractMigration;
+
+class IncreaseChallengeDescriptionFieldLength extends AbstractMigration {
+	public function up() {
+		$this->table("test")
+			->changeColumn("challenge_description", "string", ["null" => true, "limit" => 400])
+			->update();
+	}
+
+	public function down() {
+
+	}
+}

+ 1 - 1
json/age_verification.json

@@ -112,7 +112,7 @@
 			"type": "textarea",
 			"name": "challenge_description",
 			"label": "Description",
-			"maxLength": 250,
+			"maxLength": 400,
 			"helpText": "Describe how the challenge took place. For example: \"While entering I was approached politely and asked for ID.\""
 		},
 

+ 1 - 1
json/age_verification_mitchells_and_butlers.json

@@ -112,7 +112,7 @@
 			"type": "textarea",
 			"name": "challenge_description",
 			"label": "Description",
-			"maxLength": 250,
+			"maxLength": 400,
 			"helpText": "Describe how the challenge took place. For example: \"While entering I was approached politely and asked for ID.\""
 		},