public static function setUpBeforeClass() { parent::setUpBeforeClass(); static::$_nada = static::$serviceManager->get('Database\\Nada'); // Add columns to CustomFields table, matching config from fixture static::$serviceManager->get('Database\\Table\\CustomFields')->setSchema(true); $fields = static::$_nada->getTable('accountinfo'); $fields->addColumn('fields_3', Column::TYPE_VARCHAR, 255); $fields->addColumn('fields_4', Column::TYPE_INTEGER, 32); $fields->addColumn('fields_5', Column::TYPE_FLOAT); $fields->addColumn('fields_6', Column::TYPE_CLOB); $fields->addColumn('fields_7', Column::TYPE_DATE); $fields->addColumn('fields_8', Column::TYPE_VARCHAR, 255); $fields->addColumn('fields_9', Column::TYPE_VARCHAR, 255); }
public static function setUpBeforeClass() { parent::setUpBeforeClass(); static::$_nada = \Library\Application::getService('Database\\Nada'); // Add columns to CustomFields table, matching config from fixture $customFields = \Library\Application::getService('Database\\Table\\CustomFields'); $customFields->setSchema(); $fields = static::$_nada->getTable('accountinfo'); $fields->addColumn('fields_3', \Nada::DATATYPE_VARCHAR, 255); $fields->addColumn('fields_4', \Nada::DATATYPE_INTEGER, 32); $fields->addColumn('fields_5', \Nada::DATATYPE_FLOAT); $fields->addColumn('fields_6', \Nada::DATATYPE_CLOB); $fields->addColumn('fields_7', \Nada::DATATYPE_DATE); $fields->addColumn('fields_8', \Nada::DATATYPE_VARCHAR, 255); $fields->addColumn('fields_9', \Nada::DATATYPE_VARCHAR, 255); }