silverstripe-framework/tests/php/ORM/DataObjectSchemaTest/HasIndexesInFieldSpecs.php

17 lines
419 B
PHP

<?php
namespace SilverStripe\ORM\Tests\DataObjectSchemaTest;
use SilverStripe\Dev\TestOnly;
use SilverStripe\ORM\DataObject;
class HasIndexesInFieldSpecs extends DataObject implements TestOnly
{
private static $db = [
'Normal' => 'Varchar',
'IndexedTitle' => 'Varchar(255, ["index" => "fulltext"])',
'NormalMoney' => 'Money',
'IndexedMoney' => 'Money(["index" => true])'
];
}