mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Update gamesinfo table migration to create proper fulltext index (fixes issue #377)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
2018-02-08 DariusIII
|
||||
* Fix: Update gamesinfo table migration to create proper fulltext index (fixes issue #377)
|
||||
2018-02-07 DariusIII
|
||||
* Chg: Add sphinxql connection to config/database.php
|
||||
* Major upgrade: Upgraded to laravel/framework 5.6 and adjusted libraries
|
||||
|
||||
@@ -15,7 +15,7 @@ class CreateGamesinfoTable extends Migration {
|
||||
Schema::create('gamesinfo', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->string('title')->index('ix_title_ft');
|
||||
$table->string('title');
|
||||
$table->string('asin', 128)->nullable()->unique('ix_gamesinfo_asin');
|
||||
$table->string('url', 1000)->nullable();
|
||||
$table->string('publisher')->nullable();
|
||||
@@ -29,6 +29,8 @@ class CreateGamesinfoTable extends Migration {
|
||||
$table->string('classused', 10)->default('steam');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
DB::statement('ALTER TABLE gamesinfo ADD FULLTEXT ix_title_ft(title)');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user