mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
2625cea5e3
Validates that https://github.com/silverstripe/silverstripe-framework/issues/3473 has been fixed The bug was fixed in #8448
23 lines
575 B
PHP
23 lines
575 B
PHP
<?php
|
|
|
|
namespace SilverStripe\ORM\Tests\DatabaseTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\ORM\Connect\MySQLSchemaManager;
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
class MyObject extends DataObject implements TestOnly
|
|
{
|
|
private static $table_name = 'DatabaseTest_MyObject';
|
|
|
|
private static $create_table_options = array(MySQLSchemaManager::ID => 'ENGINE=InnoDB');
|
|
|
|
private static $db = array(
|
|
'MyField' => 'Varchar',
|
|
'MyInt' => 'Int',
|
|
'MyFloat' => 'Float',
|
|
'MyDecimal' => 'Decimal',
|
|
'MyBoolean' => 'Boolean',
|
|
);
|
|
}
|