Файл: concrete5.7.5.6/concrete/src/Updater/Migrations/Migrations/Version20150615000000.php
Строк: 24
<?php
namespace ConcreteCoreUpdaterMigrationsMigrations;
use ConcreteCorePagePage;
use ConcreteCorePageTypeType;
use DoctrineDBALMigrationsAbstractMigration;
use DoctrineDBALSchemaSchema;
use ORM;
class Version20150615000000 extends AbstractMigration
{
public function up(Schema $schema)
{
$type = Type::getByHandle(STACK_CATEGORY_PAGE_TYPE);
if (!is_object($type)) {
Type::add(array(
'internal' => true,
'name' => 'Stack Category',
'handle' => STACK_CATEGORY_PAGE_TYPE
));
}
}
public function down(Schema $schema)
{
}
}