mysql support json

This commit is contained in:
walkor 2023-05-10 10:25:46 +08:00
parent b0d73eaccd
commit b0712fac25
3 changed files with 4 additions and 2 deletions

View File

@ -315,6 +315,8 @@ class Util
'char' => ['Input'], 'char' => ['Input'],
'binary' => ['Input'], 'binary' => ['Input'],
'json' => ['input']
]; ];
} }

View File

@ -96,7 +96,7 @@
<script type="text/html" id="col-type"> <script type="text/html" id="col-type">
<select name="columns[{{ d.LAY_INDEX-1 }}][type]" lay-verify=""> <select name="columns[{{ d.LAY_INDEX-1 }}][type]" lay-verify="">
{{# layui.each(["integer","string","text","date","enum","float","tinyInteger","smallInteger","mediumInteger","bigInteger","unsignedInteger","unsignedTinyInteger","unsignedSmallInteger","unsignedMediumInteger","unsignedBigInteger","decimal","double","mediumText","longText","dateTime","time","timestamp","char","binary"], function (index, item) { }} {{# layui.each(["integer","string","text","date","enum","float","tinyInteger","smallInteger","mediumInteger","bigInteger","unsignedInteger","unsignedTinyInteger","unsignedSmallInteger","unsignedMediumInteger","unsignedBigInteger","decimal","double","mediumText","longText","dateTime","time","timestamp","char","binary","json"], function (index, item) { }}
<option value="{{ item }}" {{ d.type==item?"selected":""}}>{{ item }}</option> <option value="{{ item }}" {{ d.type==item?"selected":""}}>{{ item }}</option>
{{# }); }} {{# }); }}
</select> </select>

View File

@ -98,7 +98,7 @@
<script type="text/html" id="col-type"> <script type="text/html" id="col-type">
<select name="columns[{{ d.LAY_INDEX-1 }}][type]" lay-verify=""> <select name="columns[{{ d.LAY_INDEX-1 }}][type]" lay-verify="">
{{# layui.each(["integer","string","text","date","enum","float","tinyInteger","smallInteger","mediumInteger","bigInteger","unsignedInteger","unsignedTinyInteger","unsignedSmallInteger","unsignedMediumInteger","unsignedBigInteger","decimal","double","mediumText","longText","dateTime","time","timestamp","char","binary"], function (index, item) { }} {{# layui.each(["integer","string","text","date","enum","float","tinyInteger","smallInteger","mediumInteger","bigInteger","unsignedInteger","unsignedTinyInteger","unsignedSmallInteger","unsignedMediumInteger","unsignedBigInteger","decimal","double","mediumText","longText","dateTime","time","timestamp","char","binary","json"], function (index, item) { }}
<option value="{{ item }}" {{ d.type==item?'selected':''}}>{{ item }}</option> <option value="{{ item }}" {{ d.type==item?'selected':''}}>{{ item }}</option>
{{# }); }} {{# }); }}
</select> </select>