Skip to content

Commit

Permalink
Use a varchar field (should fix the Travis tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Jan 4, 2019
1 parent d74eeea commit c4d5c7e
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -110,14 +110,14 @@ public function testSpatialIndex()
public function testIndexWithLength()
{
$table = new Table('index_length');
$table->addColumn('text', 'text');
$table->addIndex(['text'], 'text_index', [], ['lengths' => [768]]);
$table->addColumn('text', 'string', ['length' => 255]);
$table->addIndex(['text'], 'text_index', [], ['lengths' => [128]]);

$this->schemaManager->dropAndCreateTable($table);

$indexes = $this->schemaManager->listTableIndexes('index_length');
self::assertArrayHasKey('text_index', $indexes);
self::assertSame([768], $indexes['text_index']->getOption('lengths'));
self::assertSame([128], $indexes['text_index']->getOption('lengths'));
}

/**
Expand Down

0 comments on commit c4d5c7e

Please sign in to comment.