File tree 6 files changed +61
-1
lines changed
6 files changed +61
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public function up()
14
14
$ table = Config::get ('cache.database.table ' );
15
15
Schema::create ($ table , function ($ table ) {
16
16
$ table ->string ('key ' , 191 )->primary ('cache_primary ' );
17
- $ table ->text ('value ' );
17
+ $ table ->longtext ('value ' );
18
18
$ table ->string ('expiration ' , 30 )->index ();
19
19
});
20
20
}
Original file line number Diff line number Diff line change @@ -439,6 +439,18 @@ protected function type_text(Magic $column)
439
439
return 'TEXT ' ;
440
440
}
441
441
442
+ /**
443
+ * Buat definisi tipe data longtext.
444
+ *
445
+ * @param Magic $column
446
+ *
447
+ * @return string
448
+ */
449
+ protected function type_longtext (Magic $ column )
450
+ {
451
+ return 'LONGTEXT ' ;
452
+ }
453
+
442
454
/**
443
455
* Buat definisi tipe data blob.
444
456
*
Original file line number Diff line number Diff line change @@ -383,6 +383,18 @@ protected function type_text(Magic $column)
383
383
return 'TEXT ' ;
384
384
}
385
385
386
+ /**
387
+ * Buat definisi tipe data longtext.
388
+ *
389
+ * @param Magic $column
390
+ *
391
+ * @return string
392
+ */
393
+ protected function type_longtext (Magic $ column )
394
+ {
395
+ return 'TEXT ' ;
396
+ }
397
+
386
398
/**
387
399
* Buat definisi tipe data blob.
388
400
*
Original file line number Diff line number Diff line change @@ -325,6 +325,18 @@ protected function type_text(Magic $column)
325
325
return 'TEXT ' ;
326
326
}
327
327
328
+ /**
329
+ * Buat definisi tipe data longtext.
330
+ *
331
+ * @param Magic $column
332
+ *
333
+ * @return string
334
+ */
335
+ protected function type_longtext (Magic $ column )
336
+ {
337
+ return 'TEXT ' ;
338
+ }
339
+
328
340
/**
329
341
* Buat definisi tipe data blob.
330
342
*
Original file line number Diff line number Diff line change @@ -392,6 +392,18 @@ protected function type_text(Magic $column)
392
392
return 'NVARCHAR(MAX) ' ;
393
393
}
394
394
395
+ /**
396
+ * Buat definisi tipe data longtext.
397
+ *
398
+ * @param Magic $column
399
+ *
400
+ * @return string
401
+ */
402
+ protected function type_longtext (Magic $ column )
403
+ {
404
+ return 'NVARCHAR(MAX) ' ;
405
+ }
406
+
395
407
/**
396
408
* Buat definisi tipe data blob.
397
409
*
Original file line number Diff line number Diff line change @@ -403,6 +403,18 @@ public function text($name)
403
403
return $ this ->column ('text ' , compact ('name ' ));
404
404
}
405
405
406
+ /**
407
+ * Tambahkan kolom longtext ke tabel.
408
+ *
409
+ * @param string $name
410
+ *
411
+ * @return Magic
412
+ */
413
+ public function longtext ($ name )
414
+ {
415
+ return $ this ->column ('longtext ' , compact ('name ' ));
416
+ }
417
+
406
418
/**
407
419
* Tambahkan kolom blob ke tabel.
408
420
*
You can’t perform that action at this time.
0 commit comments