Skip to content

Commit c37bdb6

Browse files
committedJan 31, 2025
Sync
1 parent 3ae84ef commit c37bdb6

File tree

6 files changed

+61
-1
lines changed

6 files changed

+61
-1
lines changed
 

‎application/migrations/0001_01_01_000002_create_caches_table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public function up()
1414
$table = Config::get('cache.database.table');
1515
Schema::create($table, function ($table) {
1616
$table->string('key', 191)->primary('cache_primary');
17-
$table->text('value');
17+
$table->longtext('value');
1818
$table->string('expiration', 30)->index();
1919
});
2020
}

‎system/database/schema/grammars/mysql.php

+12
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,18 @@ protected function type_text(Magic $column)
439439
return 'TEXT';
440440
}
441441

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+
442454
/**
443455
* Buat definisi tipe data blob.
444456
*

‎system/database/schema/grammars/postgres.php

+12
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,18 @@ protected function type_text(Magic $column)
383383
return 'TEXT';
384384
}
385385

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+
386398
/**
387399
* Buat definisi tipe data blob.
388400
*

‎system/database/schema/grammars/sqlite.php

+12
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,18 @@ protected function type_text(Magic $column)
325325
return 'TEXT';
326326
}
327327

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+
328340
/**
329341
* Buat definisi tipe data blob.
330342
*

‎system/database/schema/grammars/sqlserver.php

+12
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,18 @@ protected function type_text(Magic $column)
392392
return 'NVARCHAR(MAX)';
393393
}
394394

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+
395407
/**
396408
* Buat definisi tipe data blob.
397409
*

‎system/database/schema/table.php

+12
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,18 @@ public function text($name)
403403
return $this->column('text', compact('name'));
404404
}
405405

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+
406418
/**
407419
* Tambahkan kolom blob ke tabel.
408420
*

0 commit comments

Comments
 (0)