mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-21 00:46:07 +02:00
bd5a815909
This change also renders a portion of DBSchemaManager irrelevant, that destructively “fixes” old values. This is in keeping with the non-destructive principle of dev/build, and some suggestions to move away from enum fields altogether. Fixes https://github.com/silverstripe/silverstripe-framework/issues/1387
16 lines
277 B
PHP
16 lines
277 B
PHP
<?php
|
|
|
|
namespace SilverStripe\ORM\Tests\FieldType;
|
|
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
class DBEnumTestObject extends DataObject
|
|
{
|
|
|
|
private static $table_name = 'FieldType_DBEnumTestObject';
|
|
|
|
private static $db = [
|
|
'Colour' => 'Enum("Red,Blue,Green")',
|
|
];
|
|
}
|