2016-10-14 03:30:05 +02:00
|
|
|
<?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
|
|
|
|
{
|
2016-12-16 05:34:21 +01:00
|
|
|
private static $table_name = 'DatabaseTest_MyObject';
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
private static $create_table_options = array(MySQLSchemaManager::ID => 'ENGINE=InnoDB');
|
2016-10-14 03:30:05 +02:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
private static $db = array(
|
2018-10-04 05:13:32 +02:00
|
|
|
'MyField' => 'Varchar',
|
|
|
|
'MyInt' => 'Int',
|
|
|
|
'MyFloat' => 'Float',
|
2018-11-10 00:25:16 +01:00
|
|
|
'MyDecimal' => 'Decimal',
|
2018-10-04 05:13:32 +02:00
|
|
|
'MyBoolean' => 'Boolean',
|
2016-12-16 05:34:21 +01:00
|
|
|
);
|
2016-10-14 03:30:05 +02:00
|
|
|
}
|