diff --git a/composer.json b/composer.json index a355ab0750..f35c141e48 100644 --- a/composer.json +++ b/composer.json @@ -3,6 +3,12 @@ "description": "Ibexa DXP and Open Source core. Provides the Content Repository, its APIs, and the application's Symfony framework integration.", "homepage": "https://ibexa.co", "license": "(GPL-2.0-only or proprietary)", + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/ibexa/doctrine-migrations.git" + } + ], "suggest": { "php-64bit": "For support of more than 30 languages, a 64bit php installation on all involved prod/dev machines is required" }, @@ -39,6 +45,7 @@ "symfony/validator": "^5.3.0", "symfony/var-dumper": "^5.3.0", "ibexa/doctrine-schema": "~4.6.0@dev", + "ibexa/doctrine-migrations": "dev-feat/doctrine-migrations", "symfony-cmf/routing": "^2.3", "nelmio/cors-bundle": "^2.0", "pagerfanta/pagerfanta": "^2.1", diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index cfc986e841..c88d542b32 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -5550,84 +5550,12 @@ parameters: count: 1 path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - message: '#^Call to method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:checkParameters\(\) on a separate line has no effect\.$#' - identifier: method.resultUnused - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:__construct\(\) has parameter \$installers with no value type specified in iterable type array\.$#' - identifier: missingType.iterableValue - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:cacheClear\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:checkCreateDatabase\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:checkParameters\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:checkPermissions\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:configure\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:executeCommand\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:getInstaller\(\) has parameter \$type with no type specified\.$#' - identifier: missingType.parameter - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:getInstaller\(\) should return Ibexa\\Bundle\\RepositoryInstaller\\Installer\\Installer but returns false\.$#' - identifier: return.type - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\InstallPlatformCommand\:\:indexData\(\) has no return type specified\.$#' - identifier: missingType.return - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - message: '#^Strict comparison using \=\=\= between bool and 1 will always evaluate to false\.$#' identifier: identical.alwaysFalse count: 1 path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - - message: '#^Unreachable statement \- code above always terminates\.$#' - identifier: deadCode.unreachable - count: 1 - path: src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php - - message: '#^Method Ibexa\\Bundle\\RepositoryInstaller\\Command\\ValidatePasswordHashesCommand\:\:configure\(\) has no return type specified\.$#' identifier: missingType.return diff --git a/src/bundle/Core/DependencyInjection/Configuration.php b/src/bundle/Core/DependencyInjection/Configuration.php index 4b859f673b..6082b59115 100644 --- a/src/bundle/Core/DependencyInjection/Configuration.php +++ b/src/bundle/Core/DependencyInjection/Configuration.php @@ -65,6 +65,7 @@ public function getConfigTreeBuilder() $this->addUrlWildcardsSection($rootNode); $this->addOrmSection($rootNode); $this->addUITranslationsSection($rootNode); + $this->addInstallerSection($rootNode); // Delegate SiteAccess config to configuration parsers $this->mainSiteAccessConfigParser->addSemanticConfig($this->generateScopeBaseNode($rootNode)); @@ -563,6 +564,44 @@ private function addUITranslationsSection($rootNode): ArrayNodeDefinition ->end() ->end(); } + + /** + * Defines configuration for the "ibexa:install" installer. + * + * The configuration is available at: + * + * ibexa: + * installer: + * schema_builder_event: + * enabled: true + * + * + * @param \Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition $rootNode + */ + private function addInstallerSection(ArrayNodeDefinition $rootNode): ArrayNodeDefinition + { + return $rootNode + ->children() + ->arrayNode('installer') + ->children() + ->arrayNode('schema_builder_event') + ->info('Configuration of the legacy, event-driven database schema building mechanism used by the "ibexa:install" command') + ->children() + ->booleanNode('enabled') + ->defaultTrue() + ->info( + 'Whether "ibexa:install" dispatches Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent ' . + 'to let packages contribute their database schema via an event subscriber, as opposed to ' . + 'the schema being installed from static SQL migrations. ' . + 'Disable once all installed packages have migrated away from the event-driven mechanism.' + ) + ->end() + ->end() + ->end() + ->end() + ->end() + ->end(); + } } class_alias(Configuration::class, 'eZ\Bundle\EzPublishCoreBundle\DependencyInjection\Configuration'); diff --git a/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php b/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php index 5c8fda3ec1..910c7ba773 100644 --- a/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php +++ b/src/bundle/Core/DependencyInjection/IbexaCoreExtension.php @@ -134,6 +134,7 @@ public function load(array $configs, ContainerBuilder $container) $this->registerUrlWildcardsConfiguration($config, $container); $this->registerOrmConfiguration($config, $container); $this->registerUITranslationsConfiguration($config, $container); + $this->registerInstallerConfiguration($config, $container); // Routing $this->handleRouting($config, $container, $loader); @@ -331,6 +332,17 @@ private function registerUITranslationsConfiguration(array $config, ContainerBui $container->setParameter('ibexa.ui.translations.enabled', $config['ui']['translations']['enabled'] ?? false); } + /** + * @param array $config + */ + private function registerInstallerConfiguration(array $config, ContainerBuilder $container): void + { + $container->setParameter( + 'ibexa.installer.schema_builder_event.enabled', + $config['installer']['schema_builder_event']['enabled'] ?? true + ); + } + /** * Handle routing parameters. * diff --git a/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php b/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php index 0011d9d37c..567f33680a 100644 --- a/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php +++ b/src/bundle/RepositoryInstaller/Command/InstallPlatformCommand.php @@ -9,6 +9,7 @@ use Doctrine\DBAL\Connection; use Ibexa\Bundle\Core\ApiLoader\RepositoryConfigurationProvider; use Ibexa\Bundle\Core\Command\BackwardCompatibleCommand; +use Ibexa\Bundle\RepositoryInstaller\Installer\Installer; use Psr\Cache\CacheItemPoolInterface; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; @@ -17,28 +18,25 @@ use Symfony\Component\Console\Output\BufferedOutput; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; +use Symfony\Component\DependencyInjection\ServiceLocator; use Symfony\Component\Process\PhpExecutableFinder; use Symfony\Component\Process\Process; final class InstallPlatformCommand extends Command implements BackwardCompatibleCommand { - /** @var \Doctrine\DBAL\Connection */ - private $connection; + protected static $defaultName = 'ibexa:install'; - /** @var \Symfony\Component\Console\Output\OutputInterface */ - private $output; + private Connection $connection; - /** @var \Psr\Cache\CacheItemPoolInterface */ - private $cachePool; + private OutputInterface $output; - /** @var string */ - private $environment; + private CacheItemPoolInterface $cachePool; - /** @var \Ibexa\Bundle\RepositoryInstaller\Installer\Installer[] */ - private $installers = []; + private string $environment; - /** @var \Ibexa\Bundle\Core\ApiLoader\RepositoryConfigurationProvider */ - private $repositoryConfigurationProvider; + private ServiceLocator $installers; + + private RepositoryConfigurationProvider $repositoryConfigurationProvider; public const EXIT_GENERAL_DATABASE_ERROR = 4; public const EXIT_PARAMETERS_NOT_FOUND = 5; @@ -47,7 +45,7 @@ final class InstallPlatformCommand extends Command implements BackwardCompatible public function __construct( Connection $connection, - array $installers, + ServiceLocator $installers, CacheItemPoolInterface $cachePool, string $environment, RepositoryConfigurationProvider $repositoryConfigurationProvider @@ -60,14 +58,13 @@ public function __construct( parent::__construct(); } - protected function configure() + protected function configure(): void { - $this->setName('ibexa:install'); $this->setAliases($this->getDeprecatedAliases()); $this->addArgument( 'type', InputArgument::OPTIONAL, - 'The type of install. Available options: ' . implode(', ', array_keys($this->installers)), + 'The type of install. Available options: ' . implode(', ', array_keys($this->installers->getProvidedServices())), 'ibexa-oss' ); $this->addOption( @@ -82,43 +79,35 @@ protected function execute(InputInterface $input, OutputInterface $output): int { $this->output = $output; $this->checkPermissions(); - $this->checkParameters(); $this->checkCreateDatabase($output); $schemaManager = $this->connection->getSchemaManager(); if (!empty($schemaManager->listTables())) { $io = new SymfonyStyle($input, $output); if (!$io->confirm('Running this command will delete data in all Ibexa generated tables. Continue?', )) { - return 0; + return self::SUCCESS; } } $type = $input->getArgument('type'); $siteaccess = $input->getOption('siteaccess'); - $installer = $this->getInstaller($type); - if ($installer === false) { - $output->writeln( - "Unknown install type '$type', available options in currently installed Ibexa package: " . - implode(', ', array_keys($this->installers)) - ); - exit(self::EXIT_UNKNOWN_INSTALL_TYPE); - } + $installer = $this->getInstaller($type, $output); $installer->setOutput($output); $installer->importSchema(); $installer->importData(); $installer->importBinaries(); - $this->cacheClear($output); + $this->cacheClear(); if (!$input->getOption('skip-indexing')) { $this->indexData($output, $siteaccess); } - return 0; + return self::SUCCESS; } - private function checkPermissions() + private function checkPermissions(): void { // @todo should take var-dir etc. from composer config or fallback to flex directory scheme if (!is_writable('public') && !is_writable('public/var')) { @@ -127,18 +116,7 @@ private function checkPermissions() } } - private function checkParameters() - { - // @todo doesn't make sense to check for parameters.yml in sf4 and flex - return; - $parametersFile = 'app/config/parameters.yml'; - if (!is_file($parametersFile)) { - $this->output->writeln("Required configuration file '$parametersFile' not found"); - exit(self::EXIT_PARAMETERS_NOT_FOUND); - } - } - - private function checkCreateDatabase(OutputInterface $output) + private function checkCreateDatabase(OutputInterface $output): void { $output->writeln( sprintf( @@ -167,10 +145,8 @@ private function checkCreateDatabase(OutputInterface $output) /** * Clear all content related cache (persistence cache). - * - * @param \Symfony\Component\Console\Output\OutputInterface $output */ - private function cacheClear(OutputInterface $output) + private function cacheClear(): void { $this->cachePool->clear(); } @@ -183,11 +159,8 @@ private function cacheClear(OutputInterface $output) * This is done after cache clearing to make sure no cached data from before sql import is used. * * IMPORTANT: This is done using a command because config has change, so container and all services are different. - * - * @param \Symfony\Component\Console\Output\OutputInterface $output - * @param string|null $siteaccess */ - private function indexData(OutputInterface $output, $siteaccess = null) + private function indexData(OutputInterface $output, ?string $siteaccess = null): void { $output->writeln( sprintf('Search engine re-indexing, executing command ibexa:reindex') @@ -202,17 +175,19 @@ private function indexData(OutputInterface $output, $siteaccess = null) } /** - * @param $type - * * @return \Ibexa\Bundle\RepositoryInstaller\Installer\Installer */ - private function getInstaller($type) + private function getInstaller(string $type, OutputInterface $output): Installer { - if (!isset($this->installers[$type])) { - return false; + if (!$this->installers->has($type)) { + $output->writeln( + "Unknown install type '$type', available options in currently installed Ibexa package: " . + implode(', ', array_keys($this->installers->getProvidedServices())) + ); + exit(self::EXIT_UNKNOWN_INSTALL_TYPE); } - return $this->installers[$type]; + return $this->installers->get($type); } /** @@ -227,7 +202,7 @@ private function getInstaller($type) * Escape any user provided arguments, like: 'assets:install '.escapeshellarg($webDir) * @param int $timeout */ - private function executeCommand(OutputInterface $output, $cmd, $timeout = 300) + private function executeCommand(OutputInterface $output, $cmd, $timeout = 300): void { $phpFinder = new PhpExecutableFinder(); if (!$phpPath = $phpFinder->find(false)) { diff --git a/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPass.php b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPass.php index cf0df72c3e..bb8acf0ebc 100644 --- a/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPass.php +++ b/src/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPass.php @@ -6,46 +6,22 @@ */ namespace Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler; -use Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand; -use LogicException; use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\DependencyInjection\Reference; /** - * Injects services tagged as "ibexa.installer" into - * {@see \Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand::$installers}. + * @deprecated 4.6.27 Installers are now injected into + * {@see \Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand::$installers} via a + * `!tagged_locator` argument configured in services.yml, so this compiler pass is no longer needed. + * Will be removed in 5.0. */ class InstallerTagPass implements CompilerPassInterface { + /** @deprecated 4.6.27 Will be removed in 6.0. Use the 'ibexa.installer' string directly. */ public const INSTALLER_TAG = 'ibexa.installer'; public function process(ContainerBuilder $container) { - if (!$container->hasDefinition(InstallPlatformCommand::class)) { - return; - } - - $installCommandDef = $container->findDefinition(InstallPlatformCommand::class); - $installers = []; - - foreach ($container->findTaggedServiceIds(self::INSTALLER_TAG) as $id => $tags) { - foreach ($tags as $tag) { - if (!isset($tag['type'])) { - throw new LogicException( - sprintf( - 'Service tag %s needs a "type" attribute to identify the installer. You need to provide a tag for %s.', - self::INSTALLER_TAG, - $id - ) - ); - } - - $installers[$tag['type']] = new Reference($id); - } - } - - $installCommandDef->replaceArgument('$installers', $installers); } } diff --git a/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php b/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php index b5934d8080..7ad8d89726 100644 --- a/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php +++ b/src/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundle.php @@ -7,7 +7,6 @@ namespace Ibexa\Bundle\RepositoryInstaller; use Ibexa\Bundle\DoctrineSchema\DoctrineSchemaBundle; -use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Exception\RuntimeException; use Symfony\Component\HttpKernel\Bundle\Bundle; @@ -29,7 +28,6 @@ public function build(ContainerBuilder $container) } parent::build($container); - $container->addCompilerPass(new InstallerTagPass()); } } diff --git a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php index 6b05899ffe..6a10a9ecad 100644 --- a/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php +++ b/src/bundle/RepositoryInstaller/Installer/CoreInstaller.php @@ -11,63 +11,123 @@ use Doctrine\DBAL\Connection; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Schema\Schema; +use Doctrine\Migrations\Query\Query; +use Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner; use Ibexa\Contracts\DoctrineSchema\Builder\SchemaBuilderInterface; use Symfony\Component\Console\Helper\ProgressBar; /** - * Installer which uses SchemaBuilder. + * Installer which creates the core database schema. */ class CoreInstaller extends DbBasedInstaller implements Installer { /** @var \Ibexa\Contracts\DoctrineSchema\Builder\SchemaBuilderInterface */ protected $schemaBuilder; + private bool $schemaBuilderEventEnabled; + + private TaggedMigrationsRunner $taggedMigrationsRunner; + + public function __construct( + Connection $db, + SchemaBuilderInterface $schemaBuilder, + bool $schemaBuilderEventEnabled, + TaggedMigrationsRunner $taggedMigrationsRunner + ) { + parent::__construct($db); + + $this->schemaBuilder = $schemaBuilder; + $this->schemaBuilderEventEnabled = $schemaBuilderEventEnabled; + $this->taggedMigrationsRunner = $taggedMigrationsRunner; + } + /** - * @param \Doctrine\DBAL\Connection $db - * @param \Ibexa\Contracts\DoctrineSchema\Builder\SchemaBuilderInterface $schemaBuilder + * Imports the core database schema. + * + * When the "ibexa.installer.schema_builder_event.enabled" setting is enabled (the default), the schema + * is built by dispatching the legacy event-driven {@see \Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent}, + * allowing other packages to contribute their own tables via an event subscriber. + * + * Otherwise, the schema is installed by {@see TaggedMigrationsRunner}, which runs every not-yet-executed + * migration tagged with {@see \Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG} + * (core's own {@see \Ibexa\Bundle\RepositoryInstaller\Migration\InstallSchemaMigration} plus any other + * package's) via the application's Doctrine Migrations DependencyFactory. + * + * @throws \Doctrine\DBAL\DBALException */ - public function __construct(Connection $db, SchemaBuilderInterface $schemaBuilder) + public function importSchema() { - parent::__construct($db); + if ($this->schemaBuilderEventEnabled) { + $this->executeQueries($this->getQueriesFromSchemaBuilderEvent()); - $this->schemaBuilder = $schemaBuilder; + return; + } + + $this->reportExecutedQueries($this->taggedMigrationsRunner->run()); } /** - * Import Schema using event-driven Schema Builder API from Ibexa DoctrineSchema Bundle. + * Builds the schema using the event-driven Schema Builder API from the Ibexa DoctrineSchema bundle. * - * If you wish to extend schema, implement your own EventSubscriber + * If you wish to extend the schema, implement your own EventSubscriber. * * @see \Ibexa\Contracts\DoctrineSchema\Event\SchemaBuilderEvent * @see \Ibexa\Bundle\RepositoryInstaller\Event\Subscriber\BuildSchemaSubscriber * - * @throws \Doctrine\DBAL\DBALException + * @return \Doctrine\Migrations\Query\Query[] */ - public function importSchema() + private function getQueriesFromSchemaBuilderEvent(): array { - // note: schema is built using Schema Builder event-driven API $schema = $this->schemaBuilder->buildSchema(); $databasePlatform = $this->db->getDatabasePlatform(); - $queries = array_merge( + + $sqls = array_merge( $this->getDropSqlStatementsForExistingSchema($schema, $databasePlatform), - // generate schema DDL queries $schema->toSql($databasePlatform) ); + return array_map(static function (string $sql): Query { + return new Query($sql); + }, $sqls); + } + + /** + * Reports the queries {@see TaggedMigrationsRunner} already executed (and recorded) via the Doctrine + * Migrations DependencyFactory. + * + * @param \Doctrine\Migrations\Query\Query[] $queries + */ + private function reportExecutedQueries(array $queries): void + { + $this->output->writeln( + sprintf( + 'Executed %d queries on database %s (%s)', + count($queries), + $this->db->getDatabase(), + $this->db->getDatabasePlatform()->getName() + ) + ); + } + + /** + * @param \Doctrine\Migrations\Query\Query[] $queries + */ + private function executeQueries(array $queries): void + { $queriesCount = count($queries); $this->output->writeln( sprintf( 'Executing %d queries on database %s (%s)', $queriesCount, $this->db->getDatabase(), - $databasePlatform->getName() + $this->db->getDatabasePlatform()->getName() ) ); $progressBar = new ProgressBar($this->output); $progressBar->start($queriesCount); foreach ($queries as $query) { - $this->db->exec($query); + $this->db->executeStatement($query->getStatement(), $query->getParameters(), $query->getTypes()); $progressBar->advance(1); } @@ -79,18 +139,31 @@ public function importSchema() } /** + * Imports the core bootstrap data. + * + * When the "ibexa.installer.schema_builder_event.enabled" setting is enabled (the default), this imports + * the DBMS-specific "cleandata.sql" file directly. + * + * Otherwise, this also delegates to {@see TaggedMigrationsRunner}, same as {@see importSchema()}. Since + * {@see \Ibexa\Bundle\RepositoryInstaller\Migration\ImportDataMigration} is tagged and run the same way, + * calling the runner here typically executes nothing new (it already ran as part of importSchema()) - + * this call only matters if importData() is invoked on its own. + * * @throws \Doctrine\DBAL\DBALException * @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException */ public function importData() { - $this->runQueriesFromFile($this->getKernelSQLFileForDBMS('cleandata.sql')); + if ($this->schemaBuilderEventEnabled) { + $this->runQueriesFromFile($this->getKernelSQLFileForDBMS('cleandata.sql')); + + return; + } + + $this->reportExecutedQueries($this->taggedMigrationsRunner->run()); } /** - * @param \Doctrine\DBAL\Schema\Schema $newSchema - * @param \Doctrine\DBAL\Platforms\AbstractPlatform $databasePlatform - * * @return string[] */ protected function getDropSqlStatementsForExistingSchema( diff --git a/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php new file mode 100644 index 0000000000..bd312b5608 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Migration/ImportDataMigration.php @@ -0,0 +1,45 @@ +dependencyFactory = $dependencyFactory; + } + + /** + * @return \Doctrine\Migrations\Query\Query[] All SQL statements that were executed, across all migrations run + * + * @throws \RuntimeException if the "{@see IbexaOnlyDependencyFactory::SERVICE_ID}" service isn't available + */ + public function run(): array + { + if ($this->dependencyFactory === null) { + throw new RuntimeException( + 'Running tagged Doctrine migrations requires the "' . IbexaOnlyDependencyFactory::SERVICE_ID . '" ' . + 'service (provided by doctrine/migrations-bundle, with Ibexa\Bundle\DoctrineMigrations\IbexaDoctrineMigrationsBundle ' . + 'registered) to be available.' + ); + } + + $metadataStorage = $this->dependencyFactory->getMetadataStorage(); + // Mirrors what the "doctrine:migrations:migrate" console command does before migrating. + $metadataStorage->ensureInitialized(); + + $planCalculator = $this->dependencyFactory->getMigrationPlanCalculator(); + // getMigrations() returns an already-sorted list; its last item is the "latest" version. + $availableMigrations = $planCalculator->getMigrations()->getItems(); + if ($availableMigrations === []) { + return []; + } + + $latestVersion = end($availableMigrations)->getVersion(); + $plan = $planCalculator->getPlanUntilVersion($latestVersion); + + $connection = $this->dependencyFactory->getConnection(); + + $executedQueries = []; + foreach ($plan->getItems() as $migrationPlan) { + foreach ($this->executeMigration($connection, $metadataStorage, $migrationPlan) as $query) { + $executedQueries[] = $query; + } + } + + return $executedQueries; + } + + /** + * @return \Doctrine\Migrations\Query\Query[] + */ + private function executeMigration( + Connection $connection, + MetadataStorage $metadataStorage, + MigrationPlan $migrationPlan + ): array { + $executedAt = new DateTimeImmutable(); + + $migration = $migrationPlan->getMigration(); + $migration->up(new Schema()); + $queries = $migration->getSql(); + + foreach ($queries as $query) { + $connection->executeStatement($query->getStatement(), $query->getParameters(), $query->getTypes()); + } + + $result = new ExecutionResult($migrationPlan->getVersion(), $migrationPlan->getDirection(), $executedAt); + $metadataStorage->complete($result); + + return $queries; + } +} diff --git a/src/bundle/RepositoryInstaller/Resources/config/services.yml b/src/bundle/RepositoryInstaller/Resources/config/services.yml index 965404750b..4a96b2cf16 100644 --- a/src/bundle/RepositoryInstaller/Resources/config/services.yml +++ b/src/bundle/RepositoryInstaller/Resources/config/services.yml @@ -5,6 +5,30 @@ services: arguments: - '@=service("kernel").locateResource("@IbexaCoreBundle/Resources/config/storage/legacy/schema.yaml")' + Ibexa\Bundle\RepositoryInstaller\Migration\InstallSchemaMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + + Ibexa\Bundle\RepositoryInstaller\Migration\ImportDataMigration: + autowire: true + public: false + arguments: + $connection: '@ibexa.persistence.connection' + tags: + - { name: !php/const Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaMigrationTag::TAG } + + Ibexa\Bundle\RepositoryInstaller\Migration\TaggedMigrationsRunner: + public: false + arguments: + # Optional: only resolves to a service if doctrine/migrations-bundle is installed and + # configured. Not defined here, since it belongs to that package, not this one. + # Ibexa\Contracts\DoctrineMigrations\Migrations\IbexaOnlyDependencyFactory::SERVICE_ID + $dependencyFactory: '@?ibexa.doctrine_migrations.dependency_factory.ibexa_migrations_only' + Ibexa\Bundle\RepositoryInstaller\Installer\DbBasedInstaller: abstract: true arguments: ['@ibexa.persistence.connection'] @@ -13,13 +37,15 @@ services: Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller: autowire: true parent: Ibexa\Bundle\RepositoryInstaller\Installer\DbBasedInstaller + arguments: + $schemaBuilderEventEnabled: '%ibexa.installer.schema_builder_event.enabled%' tags: - { name: ibexa.installer, type: ibexa-oss } Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand: arguments: $connection: '@ibexa.persistence.connection' - $installers: [] + $installers: !tagged_locator { tag: 'ibexa.installer', index_by: 'type' } $cachePool: '@ibexa.cache_pool' $environment: "%kernel.environment%" $repositoryConfigurationProvider: '@Ibexa\Bundle\Core\ApiLoader\RepositoryConfigurationProvider' diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml b/src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml new file mode 100644 index 0000000000..d7c5b372ce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/import_data.yaml @@ -0,0 +1,243 @@ +up: + - file: 'sql/mysql/data/0001_insert_ezcobj_state.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0001_insert_ezcobj_state.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0001_insert_ezcobj_state.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0002_insert_ezcobj_state_group.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0002_insert_ezcobj_state_group.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0002_insert_ezcobj_state_group.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0003_insert_ezcobj_state_group_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0004_insert_ezcobj_state_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0004_insert_ezcobj_state_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0004_insert_ezcobj_state_language.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0005_insert_ezcobj_state_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0005_insert_ezcobj_state_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0005_insert_ezcobj_state_link.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0006_insert_ezcontent_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0006_insert_ezcontent_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0006_insert_ezcontent_language.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0007_insert_ezcontentclass.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0007_insert_ezcontentclass.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0007_insert_ezcontentclass.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0008_insert_ezcontentclass_attribute.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0010_insert_ezcontentclass_name.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0010_insert_ezcontentclass_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0010_insert_ezcontentclass_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0011_insert_ezcontentclassgroup.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0011_insert_ezcontentclassgroup.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0011_insert_ezcontentclassgroup.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0012_insert_ezcontentobject.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0012_insert_ezcontentobject.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0012_insert_ezcontentobject.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0013_insert_ezcontentobject_attribute.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0014_insert_ezcontentobject_name.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0014_insert_ezcontentobject_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0014_insert_ezcontentobject_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0015_insert_ezcontentobject_tree.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0015_insert_ezcontentobject_tree.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0015_insert_ezcontentobject_tree.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0016_insert_ezcontentobject_version.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0016_insert_ezcontentobject_version.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0016_insert_ezcontentobject_version.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0017_insert_eznode_assignment.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0017_insert_eznode_assignment.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0017_insert_eznode_assignment.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0018_insert_ezpolicy.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0018_insert_ezpolicy.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0018_insert_ezpolicy.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0019_insert_ezpolicy_limitation.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0019_insert_ezpolicy_limitation.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0019_insert_ezpolicy_limitation.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0021_insert_ezrole.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0021_insert_ezrole.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0021_insert_ezrole.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0022_insert_ezsection.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0022_insert_ezsection.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0022_insert_ezsection.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0023_insert_ezsite_data.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0023_insert_ezsite_data.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0023_insert_ezsite_data.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0024_insert_ezurlalias.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0024_insert_ezurlalias.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0024_insert_ezurlalias.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0025_insert_ezurlalias_ml.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0025_insert_ezurlalias_ml.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0025_insert_ezurlalias_ml.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0027_insert_ezuser.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0027_insert_ezuser.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0027_insert_ezuser.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0028_insert_ezuser_role.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0028_insert_ezuser_role.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0028_insert_ezuser_role.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0029_insert_ezuser_setting.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0029_insert_ezuser_setting.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0029_insert_ezuser_setting.sql' + platforms: 'sqlite' + - file: 'sql/mysql/data/0030_insert_ezpreferences.sql' + platforms: 'mysql' + - file: 'sql/postgresql/data/0030_insert_ezpreferences.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/data/0030_insert_ezpreferences.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0046_setval_eznotification_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0047_setval_ezpackage_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0052_setval_ezrole_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0055_setval_ezsection_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0056_setval_ezurl_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql' + platforms: 'postgresql' + - file: 'sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql' + platforms: 'postgresql' diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml b/src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml new file mode 100644 index 0000000000..1aca414724 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/install_schema.yaml @@ -0,0 +1,773 @@ +up: + - file: 'sql/mysql/0001_create_ezbinaryfile.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0001_create_ezbinaryfile.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0001_create_ezbinaryfile.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0002_create_ezcobj_state.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0002_create_ezcobj_state.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0002_create_ezcobj_state.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0003_create_ezcobj_state_group.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0006_create_ezcobj_state_group.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0006_create_ezcobj_state_group.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0004_create_ezcobj_state_group_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0009_create_ezcobj_state_group_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0009_create_ezcobj_state_group_language.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0005_create_ezcobj_state_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0010_create_ezcobj_state_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0010_create_ezcobj_state_language.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0006_create_ezcobj_state_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0011_create_ezcobj_state_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0011_create_ezcobj_state_link.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0007_create_ezcontent_language.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0012_create_ezcontent_language.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0012_create_ezcontent_language.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0008_create_ezuser.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0014_create_ezuser.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0014_create_ezuser.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0015_index_ezuser_ezuser_login.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0015_index_ezuser_ezuser_login.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0009_create_ezcontentobject_tree.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0016_create_ezcontentobject_tree.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0016_create_ezcontentobject_tree.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0010_create_ezcontentbrowsebookmark.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0025_create_ezcontentbrowsebookmark.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0025_create_ezcontentbrowsebookmark.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0011_create_ezcontentclass.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0029_create_ezcontentclass.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0029_create_ezcontentclass.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0012_create_ezcontentclass_attribute.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0032_create_ezcontentclass_attribute.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0032_create_ezcontentclass_attribute.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0013_create_ezcontentclass_attribute_ml.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0014_create_ezcontentclass_classgroup.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0037_create_ezcontentclass_classgroup.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0037_create_ezcontentclass_classgroup.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0015_create_ezcontentclass_name.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0038_create_ezcontentclass_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0038_create_ezcontentclass_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0016_create_ezcontentclassgroup.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0039_create_ezcontentclassgroup.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0039_create_ezcontentclassgroup.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0017_create_ezcontentobject.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0040_create_ezcontentobject.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0040_create_ezcontentobject.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0018_create_ezcontentobject_attribute.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0049_create_ezcontentobject_attribute.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0049_create_ezcontentobject_attribute.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0019_create_ezcontentobject_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0056_create_ezcontentobject_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0056_create_ezcontentobject_link.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0020_create_ezcontentobject_name.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0060_create_ezcontentobject_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0060_create_ezcontentobject_name.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0021_create_ezcontentobject_trash.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0064_create_ezcontentobject_trash.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0064_create_ezcontentobject_trash.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0022_create_ezcontentobject_version.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0071_create_ezcontentobject_version.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0071_create_ezcontentobject_version.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0023_create_ezdfsfile.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0076_create_ezdfsfile.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0076_create_ezdfsfile.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0024_create_ezgmaplocation.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0081_create_ezgmaplocation.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0081_create_ezgmaplocation.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0025_create_ezimagefile.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0083_create_ezimagefile.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0083_create_ezimagefile.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0026_create_ezkeyword.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0086_create_ezkeyword.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0086_create_ezkeyword.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0027_create_ezkeyword_attribute_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0088_create_ezkeyword_attribute_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0088_create_ezkeyword_attribute_link.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0028_create_ezmedia.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0092_create_ezmedia.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0092_create_ezmedia.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0029_create_eznode_assignment.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0093_create_eznode_assignment.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0093_create_eznode_assignment.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0030_create_eznotification.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0098_create_eznotification.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0098_create_eznotification.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0100_index_eznotification_eznotification_owner.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0100_index_eznotification_eznotification_owner.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0031_create_ezpackage.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0101_create_ezpackage.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0101_create_ezpackage.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0032_create_ezpolicy.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0102_create_ezpolicy.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0102_create_ezpolicy.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0033_create_ezpolicy_limitation.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0105_create_ezpolicy_limitation.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0105_create_ezpolicy_limitation.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0034_create_ezpolicy_limitation_value.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0107_create_ezpolicy_limitation_value.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0107_create_ezpolicy_limitation_value.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0035_create_ezpreferences.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0110_create_ezpreferences.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0110_create_ezpreferences.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0036_create_ezrole.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0113_create_ezrole.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0113_create_ezrole.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0037_create_ezsearch_object_word_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0114_create_ezsearch_object_word_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0114_create_ezsearch_object_word_link.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0038_create_ezsearch_word.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0120_create_ezsearch_word.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0120_create_ezsearch_word.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0039_create_ezsection.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0123_create_ezsection.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0123_create_ezsection.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0040_create_ezsite_data.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0124_create_ezsite_data.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0124_create_ezsite_data.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0041_create_ezurl.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0125_create_ezurl.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0125_create_ezurl.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0126_index_ezurl_ezurl_url.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0126_index_ezurl_ezurl_url.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0042_create_ezurl_object_link.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0127_create_ezurl_object_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0127_create_ezurl_object_link.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0043_create_ezurlalias.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0132_create_ezurlalias.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0132_create_ezurlalias.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0044_create_ezurlalias_ml.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0139_create_ezurlalias_ml.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0139_create_ezurlalias_ml.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0045_create_ezurlalias_ml_incr.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0148_create_ezurlalias_ml_incr.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0148_create_ezurlalias_ml_incr.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0046_create_ezurlwildcard.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0149_create_ezurlwildcard.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0149_create_ezurlwildcard.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0047_create_ezuser_accountkey.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0150_create_ezuser_accountkey.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0150_create_ezuser_accountkey.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0048_create_ezuser_role.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0152_create_ezuser_role.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0152_create_ezuser_role.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0049_create_ezuser_setting.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0155_create_ezuser_setting.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0155_create_ezuser_setting.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0050_create_ibexa_setting.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0156_create_ibexa_setting.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0156_create_ibexa_setting.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0051_create_ibexa_token_type.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0159_create_ibexa_token_type.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0159_create_ibexa_token_type.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0052_create_ibexa_token.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0161_create_ibexa_token.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0161_create_ibexa_token.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql' + platforms: 'sqlite' + - file: 'sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql' + platforms: 'postgresql' + - file: 'sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql' + platforms: 'sqlite' + - file: 'sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql' + platforms: 'postgresql' + - file: 'sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql' + platforms: 'postgresql' + - file: 'sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql' + platforms: 'postgresql' + - file: 'sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql' + platforms: 'mysql' + - file: 'sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql' + platforms: 'postgresql' diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql new file mode 100644 index 0000000000..4550a8fde8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0001_create_ezbinaryfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql new file mode 100644 index 0000000000..b7b2dcff8a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0002_create_ezcobj_state.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, INDEX ezcobj_state_priority (priority), INDEX ezcobj_state_lmask (language_mask), UNIQUE INDEX ezcobj_state_identifier (group_id, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql new file mode 100644 index 0000000000..8db47cc4fe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0003_create_ezcobj_state_group.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group (id INT AUTO_INCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezcobj_state_group_lmask (language_mask), UNIQUE INDEX ezcobj_state_group_identifier (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..7d6cb0efc5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0004_create_ezcobj_state_group_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql new file mode 100644 index 0000000000..ce7fbc900b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0005_create_ezcobj_state_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description LONGTEXT NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql new file mode 100644 index 0000000000..8905130d9f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0006_create_ezcobj_state_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql new file mode 100644 index 0000000000..d314ccc990 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0007_create_ezcontent_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontent_language_name (name(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql new file mode 100644 index 0000000000..902d1740c8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0008_create_ezuser.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT '' NOT NULL, login VARCHAR(150) DEFAULT '' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, UNIQUE INDEX ezuser_login (login), PRIMARY KEY(contentobject_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql new file mode 100644 index 0000000000..ba5486f96c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0009_create_ezcontentobject_tree.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_tree (node_id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, INDEX ezcontentobject_tree_p_node_id (parent_node_id), INDEX ezcontentobject_tree_path_ident (path_identification_string(50)), INDEX ezcontentobject_tree_contentobject_id_path_string (path_string(191), contentobject_id), INDEX ezcontentobject_tree_co_id (contentobject_id), INDEX ezcontentobject_tree_depth (depth), INDEX ezcontentobject_tree_path (path_string(191)), INDEX modified_subnode (modified_subnode), INDEX ezcontentobject_tree_remote_id (remote_id), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql new file mode 100644 index 0000000000..f7d7851f12 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0010_create_ezcontentbrowsebookmark.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentbrowsebookmark (id INT AUTO_INCREMENT NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontentbrowsebookmark_location (node_id), INDEX ezcontentbrowsebookmark_user (user_id), INDEX ezcontentbrowsebookmark_user_location (user_id, node_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql new file mode 100644 index 0000000000..333a9e52f4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0011_create_ezcontentclass.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, INDEX ezcontentclass_version (version), INDEX ezcontentclass_identifier (identifier, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..b222dde913 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0012_create_ezcontentclass_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT '' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '' NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail TINYINT(1) DEFAULT '0' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text LONGTEXT DEFAULT NULL, serialized_description_list LONGTEXT DEFAULT NULL, serialized_name_list LONGTEXT NOT NULL, INDEX ezcontentclass_attr_ccid (contentclass_id), INDEX ezcontentclass_attr_dts (data_type_string), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql new file mode 100644 index 0000000000..8e6a1f9070 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0013_create_ezcontentclass_attribute_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, INDEX ezcontentclass_attribute_ml_lang_fk (language_id), PRIMARY KEY(contentclass_attribute_id, version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..f5a3c2d20a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0014_create_ezcontentclass_classgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql new file mode 100644 index 0000000000..c6e7644e14 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0015_create_ezcontentclass_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql new file mode 100644 index 0000000000..e39f7864f8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0016_create_ezcontentclassgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclassgroup (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system TINYINT(1) DEFAULT '0' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql new file mode 100644 index 0000000000..0e84bc9642 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0017_create_ezcontentobject.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject (id INT AUTO_INCREMENT NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden TINYINT(1) DEFAULT '0' NOT NULL, INDEX ezcontentobject_classid (contentclass_id), INDEX ezcontentobject_lmask (language_mask), INDEX ezcontentobject_pub (published), INDEX ezcontentobject_section (section_id), INDEX ezcontentobject_currentversion (current_version), INDEX ezcontentobject_owner (owner_id), INDEX ezcontentobject_status (status), UNIQUE INDEX ezcontentobject_remote_id (remote_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..a15e961c0c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0018_create_ezcontentobject_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_attribute (id INT AUTO_INCREMENT NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text LONGTEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '', language_code VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, INDEX ezcontentobject_attribute_co_id_ver_lang_code (contentobject_id, version, language_code), INDEX ezcontentobject_classattr_id (contentclassattribute_id), INDEX sort_key_string (sort_key_string(191)), INDEX ezcontentobject_attribute_language_code (language_code), INDEX sort_key_int (sort_key_int), INDEX ezcontentobject_attribute_co_id_ver (contentobject_id, version), PRIMARY KEY(id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql new file mode 100644 index 0000000000..b41b6b97cb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0019_create_ezcontentobject_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_link (id INT AUTO_INCREMENT NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, INDEX ezco_link_to_co_id (to_contentobject_id), INDEX ezco_link_from (from_contentobject_id, from_contentobject_version, contentclassattribute_id), INDEX ezco_link_cca_id (contentclassattribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql new file mode 100644 index 0000000000..8031fb6dce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0020_create_ezcontentobject_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, INDEX ezcontentobject_name_lang_id (language_id), INDEX ezcontentobject_name_cov_id (content_version), INDEX ezcontentobject_name_name (name(191)), PRIMARY KEY(contentobject_id, content_version, content_translation)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql new file mode 100644 index 0000000000..a6a8e86f13 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0021_create_ezcontentobject_trash.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string LONGTEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, INDEX ezcobj_trash_depth (depth), INDEX ezcobj_trash_p_node_id (parent_node_id), INDEX ezcobj_trash_path_ident (path_identification_string(50)), INDEX ezcobj_trash_co_id (contentobject_id), INDEX ezcobj_trash_modified_subnode (modified_subnode), INDEX ezcobj_trash_path (path_string(191)), PRIMARY KEY(node_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql new file mode 100644 index 0000000000..50606c73b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0022_create_ezcontentobject_version.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_version (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, INDEX ezcobj_version_status (status), INDEX idx_object_version_objver (contentobject_id, version), INDEX ezcontobj_version_obj_status (contentobject_id, status), INDEX ezcobj_version_creator_id (creator_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql new file mode 100644 index 0000000000..165177694f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0023_create_ezdfsfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT '' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, scope VARCHAR(25) DEFAULT '' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired TINYINT(1) DEFAULT '0' NOT NULL, status TINYINT(1) DEFAULT '0' NOT NULL, INDEX ezdfsfile_name_trunk (name_trunk(191)), INDEX ezdfsfile_expired_name (expired, name(191)), INDEX ezdfsfile_name (name(191)), INDEX ezdfsfile_mtime (mtime), PRIMARY KEY(name_hash)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql new file mode 100644 index 0000000000..096c46dd2d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0024_create_ezgmaplocation.sql @@ -0,0 +1 @@ +CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, INDEX latitude_longitude_key (latitude, longitude), PRIMARY KEY(contentobject_attribute_id, contentobject_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql new file mode 100644 index 0000000000..5b9e6d2c2c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0025_create_ezimagefile.sql @@ -0,0 +1 @@ +CREATE TABLE ezimagefile (id INT AUTO_INCREMENT NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath LONGTEXT NOT NULL, INDEX ezimagefile_file (filepath(191)), INDEX ezimagefile_coid (contentobject_attribute_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql new file mode 100644 index 0000000000..2a586c9192 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0026_create_ezkeyword.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword (id INT AUTO_INCREMENT NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, INDEX ezkeyword_keyword (keyword(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql new file mode 100644 index 0000000000..3cd519f470 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0027_create_ezkeyword_attribute_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword_attribute_link (id INT AUTO_INCREMENT NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, INDEX ezkeyword_attr_link_oaid (objectattribute_id), INDEX ezkeyword_attr_link_kid_oaid (keyword_id, objectattribute_id), INDEX ezkeyword_attr_link_oaid_ver (objectattribute_id, version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql new file mode 100644 index 0000000000..2b9c743704 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0028_create_ezmedia.sql @@ -0,0 +1 @@ +CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql new file mode 100644 index 0000000000..e7765ae00a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0029_create_eznode_assignment.sql @@ -0,0 +1 @@ +CREATE TABLE eznode_assignment (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, remote_id VARCHAR(100) DEFAULT '0' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, INDEX eznode_assignment_is_main (is_main), INDEX eznode_assignment_coid_cov (contentobject_id, contentobject_version), INDEX eznode_assignment_parent_node (parent_node), INDEX eznode_assignment_co_version (contentobject_version), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql new file mode 100644 index 0000000000..20edb16ebd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0030_create_eznotification.sql @@ -0,0 +1 @@ +CREATE TABLE eznotification (id INT AUTO_INCREMENT NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending TINYINT(1) DEFAULT '1' NOT NULL, type VARCHAR(128) DEFAULT '' NOT NULL, created INT DEFAULT 0 NOT NULL, data LONGTEXT DEFAULT NULL, INDEX eznotification_owner_is_pending (owner_id, is_pending), INDEX eznotification_owner (owner_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql new file mode 100644 index 0000000000..adba6500dd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0031_create_ezpackage.sql @@ -0,0 +1 @@ +CREATE TABLE ezpackage (id INT AUTO_INCREMENT NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql new file mode 100644 index 0000000000..a8130e913a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0032_create_ezpolicy.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy (id INT AUTO_INCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, INDEX ezpolicy_role_id (role_id), INDEX ezpolicy_original_id (original_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql new file mode 100644 index 0000000000..992c1aba35 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0033_create_ezpolicy_limitation.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INT DEFAULT NULL, INDEX policy_id (policy_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..d354086aa4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0034_create_ezpolicy_limitation_value.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation_value (id INT AUTO_INCREMENT NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, INDEX ezpolicy_limit_value_limit_id (limitation_id), INDEX ezpolicy_limitation_value_val (value(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql new file mode 100644 index 0000000000..67795da3c0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0035_create_ezpreferences.sql @@ -0,0 +1 @@ +CREATE TABLE ezpreferences (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value LONGTEXT DEFAULT NULL, INDEX ezpreferences_user_id_idx (user_id, name), INDEX ezpreferences_name (name), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql new file mode 100644 index 0000000000..ae9d6d1647 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0036_create_ezrole.sql @@ -0,0 +1 @@ +CREATE TABLE ezrole (id INT AUTO_INCREMENT NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql new file mode 100644 index 0000000000..5bc76956bd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0037_create_ezsearch_object_word_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_object_word_link (id INT AUTO_INCREMENT NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, INDEX ezsearch_object_word_link_object (contentobject_id), INDEX ezsearch_object_word_link_identifier (identifier(191)), INDEX ezsearch_object_word_link_integer_value (integer_value), INDEX ezsearch_object_word_link_word (word_id), INDEX ezsearch_object_word_link_frequency (frequency), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql new file mode 100644 index 0000000000..07b9e3eeb0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0038_create_ezsearch_word.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_word (id INT AUTO_INCREMENT NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, INDEX ezsearch_word_word_i (word), INDEX ezsearch_word_obj_count (object_count), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql new file mode 100644 index 0000000000..9c6a91c30d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0039_create_ezsection.sql @@ -0,0 +1 @@ +CREATE TABLE ezsection (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql new file mode 100644 index 0000000000..6ed8657e61 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0040_create_ezsite_data.sql @@ -0,0 +1 @@ +CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT '' NOT NULL, value LONGTEXT NOT NULL, PRIMARY KEY(name)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql new file mode 100644 index 0000000000..bd531c02d4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0041_create_ezurl.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl (id INT AUTO_INCREMENT NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url LONGTEXT DEFAULT NULL, INDEX ezurl_url (url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql new file mode 100644 index 0000000000..a795d1afba --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0042_create_ezurl_object_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL, INDEX ezurl_ol_coa_id (contentobject_attribute_id), INDEX ezurl_ol_url_id (url_id), INDEX ezurl_ol_coa_version (contentobject_attribute_version), INDEX ezurl_ol_coa_id_cav (contentobject_attribute_id, contentobject_attribute_version)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql new file mode 100644 index 0000000000..10be1ded9d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0043_create_ezurlalias.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url LONGTEXT NOT NULL, INDEX ezurlalias_source_md5 (source_md5), INDEX ezurlalias_wcard_fwd (is_wildcard, forward_to_id), INDEX ezurlalias_forward_to_id (forward_to_id), INDEX ezurlalias_imp_wcard_fwd (is_imported, is_wildcard, forward_to_id), INDEX ezurlalias_source_url (source_url(191)), INDEX ezurlalias_desturl (destination_url(191)), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql new file mode 100644 index 0000000000..f60a5debf8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0044_create_ezurlalias_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT '' NOT NULL, action LONGTEXT NOT NULL, action_type VARCHAR(32) DEFAULT '' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text LONGTEXT NOT NULL, INDEX ezurlalias_ml_actt_org_al (action_type, is_original, is_alias), INDEX ezurlalias_ml_text_lang (text(32), lang_mask, parent), INDEX ezurlalias_ml_par_act_id_lnk (action(32), id, link, parent), INDEX ezurlalias_ml_par_lnk_txt (parent, text(32), link), INDEX ezurlalias_ml_act_org (action(32), is_original), INDEX ezurlalias_ml_text (text(32), id, link), INDEX ezurlalias_ml_link (link), INDEX ezurlalias_ml_id (id), PRIMARY KEY(parent, text_md5)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..0e028a410a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0045_create_ezurlalias_ml_incr.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml_incr (id INT AUTO_INCREMENT NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql new file mode 100644 index 0000000000..49e6fdb7cc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0046_create_ezurlwildcard.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlwildcard (id INT AUTO_INCREMENT NOT NULL, destination_url LONGTEXT NOT NULL, source_url LONGTEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql new file mode 100644 index 0000000000..0bca83a3b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0047_create_ezuser_accountkey.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_accountkey (id INT AUTO_INCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT '' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, INDEX hash_key (hash_key), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql new file mode 100644 index 0000000000..89f78ae40d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0048_create_ezuser_role.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_role (id INT AUTO_INCREMENT NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT '', limit_value VARCHAR(255) DEFAULT '', role_id INT DEFAULT NULL, INDEX ezuser_role_role_id (role_id), INDEX ezuser_role_contentobject_id (contentobject_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql new file mode 100644 index 0000000000..c3c035a3ea --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0049_create_ezuser_setting.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql new file mode 100644 index 0000000000..d664bb1bf9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0050_create_ibexa_setting.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_setting (id INT AUTO_INCREMENT NOT NULL, `group` VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, INDEX ibexa_setting_id (id), UNIQUE INDEX ibexa_setting_group_identifier (`group`, identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql new file mode 100644 index 0000000000..050286548c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0051_create_ibexa_token_type.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token_type (id INT AUTO_INCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL, UNIQUE INDEX ibexa_token_type_unique (identifier), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql new file mode 100644 index 0000000000..2cc774c11a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0052_create_ibexa_token.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token (id INT AUTO_INCREMENT NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked TINYINT(1) DEFAULT '0' NOT NULL, INDEX IDX_B5412887C54C8C93 (type_id), UNIQUE INDEX ibexa_token_unique (token, identifier, type_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE `utf8_unicode_ci` ENGINE = InnoDB; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql new file mode 100644 index 0000000000..fd2f319c2a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0053_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql new file mode 100644 index 0000000000..a4fe1c30db --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0054_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql new file mode 100644 index 0000000000..9d8fb82dc7 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0055_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql new file mode 100644 index 0000000000..f8e58ffca0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/0056_fk_ibexa_token_ibexa_token_type_id_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql new file mode 100644 index 0000000000..64e0eacdd1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0001_insert_ezcobj_state.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) +VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql new file mode 100644 index 0000000000..677a43ca5c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0002_insert_ezcobj_state_group.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) +VALUES (2,2,'ez_lock',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..9930341865 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0003_insert_ezcobj_state_group_language.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) +VALUES (2,'',3,'Lock',2); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql new file mode 100644 index 0000000000..dc7872d95b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0004_insert_ezcobj_state_language.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) +VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql new file mode 100644 index 0000000000..9a0dd8d0e9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0005_insert_ezcobj_state_link.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) +VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql new file mode 100644 index 0000000000..97bfa86644 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0006_insert_ezcontent_language.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql new file mode 100644 index 0000000000..540efcb3ef --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0007_insert_ezcontentclass.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) +VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), + (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..30ad516ff8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0008_insert_ezcontentclass_attribute.sql @@ -0,0 +1,25 @@ +INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) +VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..ffa17693b0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0009_insert_ezcontentclass_classgroup.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) +VALUES (1, 0, 1, 'Content'), + (2, 0, 1, 'Content'), + (3, 0, 2, 'Users'), + (4, 0, 2, 'Users'), + (5, 0, 3, 'Media'), + (12, 0, 3, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql new file mode 100644 index 0000000000..1f517c87e3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0010_insert_ezcontentclass_name.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) +VALUES (1, 0, 2, 'eng-GB', 'Folder'), + (2, 0, 3, 'eng-GB', 'Article'), + (3, 0, 3, 'eng-GB', 'User group'), + (4, 0, 3, 'eng-GB', 'User'), + (5, 0, 3, 'eng-GB', 'Image'), + (12, 0, 3, 'eng-GB', 'File'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql new file mode 100644 index 0000000000..61aea82715 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0011_insert_ezcontentclassgroup.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) +VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql new file mode 100644 index 0000000000..c18bc54f7d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0012_insert_ezcontentobject.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) +VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..d2ec35a36f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0013_insert_ezcontentobject_attribute.sql @@ -0,0 +1,41 @@ +INSERT INTO `ezcontentobject_attribute` (`attribute_original_id`, `contentclassattribute_id`, `contentobject_id`, `data_float`, `data_int`, `data_text`, `data_type_string`, `id`, `language_code`, `language_id`, `sort_key_int`, `sort_key_string`, `version`) +VALUES (0,4,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,'\n\n','ezimage',180,'eng-GB',3,0,'',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql new file mode 100644 index 0000000000..fc75852a7c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0014_insert_ezcontentobject_name.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) +VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql new file mode 100644 index 0000000000..1cfc2b9049 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0015_insert_ezcontentobject_tree.sql @@ -0,0 +1,14 @@ +INSERT INTO `ezcontentobject_tree` (`contentobject_id`, `contentobject_is_published`, `contentobject_version`, `depth`, `is_hidden`, `is_invisible`, `main_node_id`, `modified_subnode`, `node_id`, `parent_node_id`, `path_identification_string`, `path_string`, `priority`, `remote_id`, `sort_field`, `sort_order`) +VALUES (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql new file mode 100644 index 0000000000..f8ba2fe49d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0016_insert_ezcontentobject_version.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql new file mode 100644 index 0000000000..b69e8a455f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0017_insert_eznode_assignment.sql @@ -0,0 +1,13 @@ +INSERT INTO `eznode_assignment` (`contentobject_id`, `contentobject_version`, `from_node_id`, `id`, `is_main`, `op_code`, `parent_node`, `parent_remote_id`, `remote_id`, `sort_field`, `sort_order`, `priority`, `is_hidden`) +VALUES (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql new file mode 100644 index 0000000000..7e0d289d2b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0018_insert_ezpolicy.sql @@ -0,0 +1,9 @@ +INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) +VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql new file mode 100644 index 0000000000..d1dfc57ee9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0019_insert_ezpolicy_limitation.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) +VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..26ef009ea8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0020_insert_ezpolicy_limitation_value.sql @@ -0,0 +1,8 @@ +INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) +VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql new file mode 100644 index 0000000000..16605e3ee2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0021_insert_ezrole.sql @@ -0,0 +1,5 @@ +INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) +VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql new file mode 100644 index 0000000000..a12ae3cbfb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0022_insert_ezsection.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) +VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql new file mode 100644 index 0000000000..82536384d3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0023_insert_ezsite_data.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezsite_data` (`name`, `value`) +VALUES ('ibexa-release','4.6'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql new file mode 100644 index 0000000000..dbdfab1b74 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0024_insert_ezurlalias.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) +VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql new file mode 100644 index 0000000000..1a3fce42c5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0025_insert_ezurlalias_ml.sql @@ -0,0 +1,26 @@ +INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) +VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..60ee1309ce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0026_insert_ezurlalias_ml_incr.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezurlalias_ml_incr` (`id`) +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql new file mode 100644 index 0000000000..151e4f6fa4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0027_insert_ezuser.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) +VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql new file mode 100644 index 0000000000..5ad1f12f1e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0028_insert_ezuser_role.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) +VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql new file mode 100644 index 0000000000..c87f9291dd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0029_insert_ezuser_setting.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) +VALUES (1,1000,10), + (1,10,14); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql new file mode 100644 index 0000000000..5a44f420f9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/mysql/data/0030_insert_ezpreferences.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) +SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin'; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql new file mode 100644 index 0000000000..14531f39f5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0001_create_ezbinaryfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezbinaryfile (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, download_count INT DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql new file mode 100644 index 0000000000..16d6b76be3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0002_create_ezcobj_state.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql new file mode 100644 index 0000000000..acd97e80ae --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0003_index_ezcobj_state_ezcobj_state_priority.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql new file mode 100644 index 0000000000..6d6498dfa3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0004_index_ezcobj_state_ezcobj_state_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql new file mode 100644 index 0000000000..a622a7319b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0005_index_ezcobj_state_ezcobj_state_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql new file mode 100644 index 0000000000..aa60df6bbf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0006_create_ezcobj_state_group.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group (id SERIAL NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql new file mode 100644 index 0000000000..8693d6bab5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql new file mode 100644 index 0000000000..36481c9271 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..e73ef9404d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0009_create_ezcobj_state_group_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INT DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql new file mode 100644 index 0000000000..75a6e90f82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0010_create_ezcobj_state_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_language (contentobject_state_id INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description TEXT NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql new file mode 100644 index 0000000000..f90c53635b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0011_create_ezcobj_state_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_link (contentobject_id INT DEFAULT 0 NOT NULL, contentobject_state_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql new file mode 100644 index 0000000000..fc7a9a2fdf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0012_create_ezcontent_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INT DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql new file mode 100644 index 0000000000..0a236b1d78 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0013_index_ezcontent_language_ezcontent_language_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontent_language_name ON ezcontent_language (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql new file mode 100644 index 0000000000..aaf5f8ae89 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0014_create_ezuser.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser (contentobject_id INT DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT '' NOT NULL, login VARCHAR(150) DEFAULT '' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INT DEFAULT 1 NOT NULL, password_updated_at INT DEFAULT NULL, PRIMARY KEY(contentobject_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql new file mode 100644 index 0000000000..382bc2fe6f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0015_index_ezuser_ezuser_login.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezuser_login ON ezuser (login); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql new file mode 100644 index 0000000000..ebb309ad93 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0016_create_ezcontentobject_tree.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_tree (node_id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_is_published INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, PRIMARY KEY(node_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql new file mode 100644 index 0000000000..7a3cbafefc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql new file mode 100644 index 0000000000..a0694b8c61 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql new file mode 100644 index 0000000000..80dcea65d9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql new file mode 100644 index 0000000000..9f76373cac --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql new file mode 100644 index 0000000000..d7b5136f63 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql new file mode 100644 index 0000000000..f0c7ac9ecc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql new file mode 100644 index 0000000000..87676071e9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0023_index_ezcontentobject_tree_modified_subnode.sql @@ -0,0 +1 @@ +CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql new file mode 100644 index 0000000000..22d066cdca --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql new file mode 100644 index 0000000000..c9c6672a2d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0025_create_ezcontentbrowsebookmark.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentbrowsebookmark (id SERIAL NOT NULL, node_id INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql new file mode 100644 index 0000000000..659a26c514 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql new file mode 100644 index 0000000000..5b0696a7e8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql new file mode 100644 index 0000000000..6c77193029 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql new file mode 100644 index 0000000000..d983cc5378 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0029_create_ezcontentclass.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, always_available INT DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT DEFAULT NULL, sort_field INT DEFAULT 1 NOT NULL, sort_order INT DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql new file mode 100644 index 0000000000..7fd0e3cfa1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0030_index_ezcontentclass_ezcontentclass_version.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_version ON ezcontentclass (version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql new file mode 100644 index 0000000000..24c8111651 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0031_index_ezcontentclass_ezcontentclass_identifier.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..273341c716 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0032_create_ezcontentclass_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, can_translate INT DEFAULT 1, category VARCHAR(25) DEFAULT '' NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INT DEFAULT NULL, data_int2 INT DEFAULT NULL, data_int3 INT DEFAULT NULL, data_int4 INT DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '' NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, is_information_collector INT DEFAULT 0 NOT NULL, is_required INT DEFAULT 0 NOT NULL, is_searchable INT DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT 'false' NOT NULL, placement INT DEFAULT 0 NOT NULL, serialized_data_text TEXT DEFAULT NULL, serialized_description_list TEXT DEFAULT NULL, serialized_name_list TEXT NOT NULL, PRIMARY KEY(id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql new file mode 100644 index 0000000000..7875734dae --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql new file mode 100644 index 0000000000..ba2700ac55 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql new file mode 100644 index 0000000000..8f5af634b4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0035_create_ezcontentclass_attribute_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INT NOT NULL, version INT NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_json TEXT DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql new file mode 100644 index 0000000000..f17be3c68c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..3a8d83fa44 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0037_create_ezcontentclass_classgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_classgroup (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, group_id INT DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql new file mode 100644 index 0000000000..ebcc1e629b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0038_create_ezcontentclass_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_name (contentclass_id INT DEFAULT 0 NOT NULL, contentclass_version INT DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql new file mode 100644 index 0000000000..4d31939956 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0039_create_ezcontentclassgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclassgroup (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, modifier_id INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql new file mode 100644 index 0000000000..06925bdc48 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0040_create_ezcontentobject.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject (id SERIAL NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, current_version INT DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INT DEFAULT 0 NOT NULL, status INT DEFAULT 0, is_hidden BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql new file mode 100644 index 0000000000..5dddc18819 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0041_index_ezcontentobject_ezcontentobject_classid.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql new file mode 100644 index 0000000000..6fd63f61d8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0042_index_ezcontentobject_ezcontentobject_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql new file mode 100644 index 0000000000..022ffd1c54 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0043_index_ezcontentobject_ezcontentobject_pub.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_pub ON ezcontentobject (published); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql new file mode 100644 index 0000000000..2459702346 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0044_index_ezcontentobject_ezcontentobject_section.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql new file mode 100644 index 0000000000..cb0f62d824 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0045_index_ezcontentobject_ezcontentobject_currentversion.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql new file mode 100644 index 0000000000..17c73894b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0046_index_ezcontentobject_ezcontentobject_owner.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql new file mode 100644 index 0000000000..f68fa6262f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0047_index_ezcontentobject_ezcontentobject_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_status ON ezcontentobject (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql new file mode 100644 index 0000000000..6e86f88cfe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0048_index_ezcontentobject_ezcontentobject_remote_id.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..1d315de98a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0049_create_ezcontentobject_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_attribute (id SERIAL NOT NULL, version INT DEFAULT 0 NOT NULL, attribute_original_id INT DEFAULT 0, contentclassattribute_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INT DEFAULT NULL, data_text TEXT DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '', language_code VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INT DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql new file mode 100644 index 0000000000..6b23dbfdcb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql new file mode 100644 index 0000000000..c8391d6730 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql new file mode 100644 index 0000000000..320329b4f4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0052_index_ezcontentobject_attribute_sort_key_string.sql @@ -0,0 +1 @@ +CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql new file mode 100644 index 0000000000..31e10963b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql new file mode 100644 index 0000000000..d89a560a80 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0054_index_ezcontentobject_attribute_sort_key_int.sql @@ -0,0 +1 @@ +CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql new file mode 100644 index 0000000000..3a0b46cb82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql new file mode 100644 index 0000000000..26d2b46d1c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0056_create_ezcontentobject_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_link (id SERIAL NOT NULL, contentclassattribute_id INT DEFAULT 0 NOT NULL, from_contentobject_id INT DEFAULT 0 NOT NULL, from_contentobject_version INT DEFAULT 0 NOT NULL, relation_type INT DEFAULT 1 NOT NULL, to_contentobject_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql new file mode 100644 index 0000000000..c09dfefbf0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql new file mode 100644 index 0000000000..5553d5dbb9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0058_index_ezcontentobject_link_ezco_link_from.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql new file mode 100644 index 0000000000..576d349337 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0059_index_ezcontentobject_link_ezco_link_cca_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql new file mode 100644 index 0000000000..fb0c9cf656 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0060_create_ezcontentobject_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_name (contentobject_id INT DEFAULT 0 NOT NULL, content_version INT DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql new file mode 100644 index 0000000000..a53893b840 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql new file mode 100644 index 0000000000..d47ec6ff06 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql new file mode 100644 index 0000000000..066bdd2ddf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql new file mode 100644 index 0000000000..cbc1d75091 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0064_create_ezcontentobject_trash.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_trash (node_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, depth INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, is_invisible INT DEFAULT 0 NOT NULL, main_node_id INT DEFAULT NULL, modified_subnode INT DEFAULT 0, parent_node_id INT DEFAULT 0 NOT NULL, path_identification_string TEXT DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INT DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, trashed INT DEFAULT 0 NOT NULL, PRIMARY KEY(node_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql new file mode 100644 index 0000000000..22a5480ee9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql new file mode 100644 index 0000000000..1b230d30c0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql new file mode 100644 index 0000000000..e97fae979c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql new file mode 100644 index 0000000000..4f2edf4230 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql new file mode 100644 index 0000000000..980553e6cc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql new file mode 100644 index 0000000000..41f87ea995 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql new file mode 100644 index 0000000000..0379c24c58 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0071_create_ezcontentobject_version.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_version (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, created INT DEFAULT 0 NOT NULL, creator_id INT DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, status INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, workflow_event_pos INT DEFAULT 0, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql new file mode 100644 index 0000000000..eb1712c587 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0072_index_ezcontentobject_version_ezcobj_version_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql new file mode 100644 index 0000000000..d9ade282a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0073_index_ezcontentobject_version_idx_object_version_objver.sql @@ -0,0 +1 @@ +CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql new file mode 100644 index 0000000000..f8b3625958 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql new file mode 100644 index 0000000000..7ad71e9d33 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql new file mode 100644 index 0000000000..9c43e1a6d2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0076_create_ezdfsfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT '' NOT NULL, name TEXT NOT NULL, name_trunk TEXT NOT NULL, datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, scope VARCHAR(25) DEFAULT '' NOT NULL, size BIGINT DEFAULT 0 NOT NULL, mtime INT DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT 'false' NOT NULL, status BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(name_hash)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql new file mode 100644 index 0000000000..a52478c504 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql new file mode 100644 index 0000000000..b6a67a8141 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0078_index_ezdfsfile_ezdfsfile_expired_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql new file mode 100644 index 0000000000..b1093dd031 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0079_index_ezdfsfile_ezdfsfile_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_name ON ezdfsfile (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql new file mode 100644 index 0000000000..74974918cf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0080_index_ezdfsfile_ezdfsfile_mtime.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql new file mode 100644 index 0000000000..7783fe956a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0081_create_ezgmaplocation.sql @@ -0,0 +1 @@ +CREATE TABLE ezgmaplocation (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_version INT DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql new file mode 100644 index 0000000000..c71ce38856 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0082_index_ezgmaplocation_latitude_longitude_key.sql @@ -0,0 +1 @@ +CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql new file mode 100644 index 0000000000..10daf6c34e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0083_create_ezimagefile.sql @@ -0,0 +1 @@ +CREATE TABLE ezimagefile (id SERIAL NOT NULL, contentobject_attribute_id INT DEFAULT 0 NOT NULL, filepath TEXT NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql new file mode 100644 index 0000000000..9fd53f1f99 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0084_index_ezimagefile_ezimagefile_file.sql @@ -0,0 +1 @@ +CREATE INDEX ezimagefile_file ON ezimagefile (filepath); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql new file mode 100644 index 0000000000..4aa9687e74 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0085_index_ezimagefile_ezimagefile_coid.sql @@ -0,0 +1 @@ +CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql new file mode 100644 index 0000000000..15f8411056 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0086_create_ezkeyword.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword (id SERIAL NOT NULL, class_id INT DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql new file mode 100644 index 0000000000..d8e144c201 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0087_index_ezkeyword_ezkeyword_keyword.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql new file mode 100644 index 0000000000..0f542cd006 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0088_create_ezkeyword_attribute_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword_attribute_link (id SERIAL NOT NULL, keyword_id INT DEFAULT 0 NOT NULL, objectattribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql new file mode 100644 index 0000000000..8d8572e8bd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql new file mode 100644 index 0000000000..f07b97d9ab --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql new file mode 100644 index 0000000000..0404bc617b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql new file mode 100644 index 0000000000..f2a1f54018 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0092_create_ezmedia.sql @@ -0,0 +1 @@ +CREATE TABLE ezmedia (contentobject_attribute_id INT DEFAULT 0 NOT NULL, version INT DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, has_controller INT DEFAULT 0, height INT DEFAULT NULL, is_autoplay INT DEFAULT 0, is_loop INT DEFAULT 0, mime_type VARCHAR(50) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INT DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql new file mode 100644 index 0000000000..9c81b2afb8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0093_create_eznode_assignment.sql @@ -0,0 +1 @@ +CREATE TABLE eznode_assignment (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, contentobject_version INT DEFAULT NULL, from_node_id INT DEFAULT 0, is_main INT DEFAULT 0 NOT NULL, op_code INT DEFAULT 0 NOT NULL, parent_node INT DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, remote_id VARCHAR(100) DEFAULT '0' NOT NULL, sort_field INT DEFAULT 1, sort_order INT DEFAULT 1, priority INT DEFAULT 0 NOT NULL, is_hidden INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql new file mode 100644 index 0000000000..5e5ed94263 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0094_index_eznode_assignment_eznode_assignment_is_main.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql new file mode 100644 index 0000000000..987539c281 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql new file mode 100644 index 0000000000..7c7225c18d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0096_index_eznode_assignment_eznode_assignment_parent_node.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql new file mode 100644 index 0000000000..6b519ccc54 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0097_index_eznode_assignment_eznode_assignment_co_version.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql new file mode 100644 index 0000000000..4850a0a117 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0098_create_eznotification.sql @@ -0,0 +1 @@ +CREATE TABLE eznotification (id SERIAL NOT NULL, owner_id INT DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT 'true' NOT NULL, type VARCHAR(128) DEFAULT '' NOT NULL, created INT DEFAULT 0 NOT NULL, data TEXT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql new file mode 100644 index 0000000000..862b80ddf5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0099_index_eznotification_eznotification_owner_is_pending.sql @@ -0,0 +1 @@ +CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql new file mode 100644 index 0000000000..b621afd705 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0100_index_eznotification_eznotification_owner.sql @@ -0,0 +1 @@ +CREATE INDEX eznotification_owner ON eznotification (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql new file mode 100644 index 0000000000..675d8f105c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0101_create_ezpackage.sql @@ -0,0 +1 @@ +CREATE TABLE ezpackage (id SERIAL NOT NULL, install_date INT DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql new file mode 100644 index 0000000000..2fe0b4c43f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0102_create_ezpolicy.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy (id SERIAL NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INT DEFAULT 0 NOT NULL, role_id INT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql new file mode 100644 index 0000000000..366c989ec0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0103_index_ezpolicy_ezpolicy_role_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql new file mode 100644 index 0000000000..9a3d4f8171 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0104_index_ezpolicy_ezpolicy_original_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql new file mode 100644 index 0000000000..5e7abb39e5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0105_create_ezpolicy_limitation.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql new file mode 100644 index 0000000000..6640c10ce8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0106_index_ezpolicy_limitation_policy_id.sql @@ -0,0 +1 @@ +CREATE INDEX policy_id ON ezpolicy_limitation (policy_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..a0f290af9d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0107_create_ezpolicy_limitation_value.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation_value (id SERIAL NOT NULL, limitation_id INT DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql new file mode 100644 index 0000000000..446a27fdaa --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql new file mode 100644 index 0000000000..8c0458bdde --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql new file mode 100644 index 0000000000..6c23ca2fe5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0110_create_ezpreferences.sql @@ -0,0 +1 @@ +CREATE TABLE ezpreferences (id SERIAL NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INT DEFAULT 0 NOT NULL, value TEXT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql new file mode 100644 index 0000000000..e8330b63d4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0111_index_ezpreferences_ezpreferences_user_id_idx.sql @@ -0,0 +1 @@ +CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql new file mode 100644 index 0000000000..e33390d2a3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0112_index_ezpreferences_ezpreferences_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezpreferences_name ON ezpreferences (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql new file mode 100644 index 0000000000..3a828c94f8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0113_create_ezrole.sql @@ -0,0 +1 @@ +CREATE TABLE ezrole (id SERIAL NOT NULL, is_new INT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, value CHAR(1) DEFAULT NULL, version INT DEFAULT 0, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql new file mode 100644 index 0000000000..3fd4f08a00 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0114_create_ezsearch_object_word_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_object_word_link (id SERIAL NOT NULL, contentclass_attribute_id INT DEFAULT 0 NOT NULL, contentclass_id INT DEFAULT 0 NOT NULL, contentobject_id INT DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, integer_value INT DEFAULT 0 NOT NULL, next_word_id INT DEFAULT 0 NOT NULL, placement INT DEFAULT 0 NOT NULL, prev_word_id INT DEFAULT 0 NOT NULL, published INT DEFAULT 0 NOT NULL, section_id INT DEFAULT 0 NOT NULL, word_id INT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql new file mode 100644 index 0000000000..fb984de9f9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql new file mode 100644 index 0000000000..724819087d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql new file mode 100644 index 0000000000..9c46453535 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql new file mode 100644 index 0000000000..058c9b9de2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql new file mode 100644 index 0000000000..6864b9d5b8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql new file mode 100644 index 0000000000..c4ac6e1ae2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0120_create_ezsearch_word.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_word (id SERIAL NOT NULL, object_count INT DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql new file mode 100644 index 0000000000..d1f15870a4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0121_index_ezsearch_word_ezsearch_word_word_i.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql new file mode 100644 index 0000000000..ee7a50072c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0122_index_ezsearch_word_ezsearch_word_obj_count.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql new file mode 100644 index 0000000000..6bb9b22705 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0123_create_ezsection.sql @@ -0,0 +1 @@ +CREATE TABLE ezsection (id SERIAL NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart', PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql new file mode 100644 index 0000000000..51b1319beb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0124_create_ezsite_data.sql @@ -0,0 +1 @@ +CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT '' NOT NULL, value TEXT NOT NULL, PRIMARY KEY(name)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql new file mode 100644 index 0000000000..9f0b264139 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0125_create_ezurl.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl (id SERIAL NOT NULL, created INT DEFAULT 0 NOT NULL, is_valid INT DEFAULT 1 NOT NULL, last_checked INT DEFAULT 0 NOT NULL, modified INT DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url TEXT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql new file mode 100644 index 0000000000..d49afdc63d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0126_index_ezurl_ezurl_url.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_url ON ezurl (url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql new file mode 100644 index 0000000000..e9641de5ed --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0127_create_ezurl_object_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl_object_link (contentobject_attribute_id INT DEFAULT 0 NOT NULL, contentobject_attribute_version INT DEFAULT 0 NOT NULL, url_id INT DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql new file mode 100644 index 0000000000..67e46a38fe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql new file mode 100644 index 0000000000..6b9fa680c3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0129_index_ezurl_object_link_ezurl_ol_url_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql new file mode 100644 index 0000000000..0160b9c1a3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql new file mode 100644 index 0000000000..e2b3d317a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql new file mode 100644 index 0000000000..3fc9158ca2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0132_create_ezurlalias.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias (id SERIAL NOT NULL, destination_url TEXT NOT NULL, forward_to_id INT DEFAULT 0 NOT NULL, is_imported INT DEFAULT 0 NOT NULL, is_internal INT DEFAULT 1 NOT NULL, is_wildcard INT DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url TEXT NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql new file mode 100644 index 0000000000..b447996855 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0133_index_ezurlalias_ezurlalias_source_md5.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql new file mode 100644 index 0000000000..c884362677 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql new file mode 100644 index 0000000000..2cd160e33f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0135_index_ezurlalias_ezurlalias_forward_to_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql new file mode 100644 index 0000000000..062366e854 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql new file mode 100644 index 0000000000..aa37643b1e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0137_index_ezurlalias_ezurlalias_source_url.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql new file mode 100644 index 0000000000..07e4107f82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0138_index_ezurlalias_ezurlalias_desturl.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql new file mode 100644 index 0000000000..498ed19ceb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0139_create_ezurlalias_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml (parent INT DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT '' NOT NULL, action TEXT NOT NULL, action_type VARCHAR(32) DEFAULT '' NOT NULL, alias_redirects INT DEFAULT 1 NOT NULL, id INT DEFAULT 0 NOT NULL, is_alias INT DEFAULT 0 NOT NULL, is_original INT DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INT DEFAULT 0 NOT NULL, text TEXT NOT NULL, PRIMARY KEY(parent, text_md5)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql new file mode 100644 index 0000000000..84fd80638b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql new file mode 100644 index 0000000000..b33960fcad --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql new file mode 100644 index 0000000000..7ba3dc6750 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml (action, id, link, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql new file mode 100644 index 0000000000..8a9145ac6c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql new file mode 100644 index 0000000000..cbcd9b056a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml (action, is_original); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql new file mode 100644 index 0000000000..139b8c5f68 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql new file mode 100644 index 0000000000..5e0c908085 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql new file mode 100644 index 0000000000..91393fd7ee --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..80a0370490 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0148_create_ezurlalias_ml_incr.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml_incr (id SERIAL NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql new file mode 100644 index 0000000000..7de76a2918 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0149_create_ezurlwildcard.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlwildcard (id SERIAL NOT NULL, destination_url TEXT NOT NULL, source_url TEXT NOT NULL, type INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql new file mode 100644 index 0000000000..8de6d5dc85 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0150_create_ezuser_accountkey.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_accountkey (id SERIAL NOT NULL, hash_key VARCHAR(32) DEFAULT '' NOT NULL, time INT DEFAULT 0 NOT NULL, user_id INT DEFAULT 0 NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql new file mode 100644 index 0000000000..b6d4c50c07 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0151_index_ezuser_accountkey_hash_key.sql @@ -0,0 +1 @@ +CREATE INDEX hash_key ON ezuser_accountkey (hash_key); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql new file mode 100644 index 0000000000..f7ce47113b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0152_create_ezuser_role.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_role (id SERIAL NOT NULL, contentobject_id INT DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT '', limit_value VARCHAR(255) DEFAULT '', role_id INT DEFAULT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql new file mode 100644 index 0000000000..2224306ce1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0153_index_ezuser_role_ezuser_role_role_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql new file mode 100644 index 0000000000..2f779bf8a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0154_index_ezuser_role_ezuser_role_contentobject_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql new file mode 100644 index 0000000000..1c4fed4d8c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0155_create_ezuser_setting.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_setting (user_id INT DEFAULT 0 NOT NULL, is_enabled INT DEFAULT 0 NOT NULL, max_login INT DEFAULT NULL, PRIMARY KEY(user_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql new file mode 100644 index 0000000000..d3ae1af8b3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0156_create_ibexa_setting.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_setting (id SERIAL NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value JSON NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql new file mode 100644 index 0000000000..d6f3d3b0dc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0157_index_ibexa_setting_ibexa_setting_id.sql @@ -0,0 +1 @@ +CREATE INDEX ibexa_setting_id ON ibexa_setting (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql new file mode 100644 index 0000000000..e2a05c6a8d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql new file mode 100644 index 0000000000..34e08782fb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0159_create_ibexa_token_type.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token_type (id SERIAL NOT NULL, identifier VARCHAR(64) NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql new file mode 100644 index 0000000000..17f4b2cf68 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0160_index_ibexa_token_type_ibexa_token_type_unique.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql new file mode 100644 index 0000000000..a67a678e35 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0161_create_ibexa_token.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token (id SERIAL NOT NULL, type_id INT NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INT DEFAULT 0 NOT NULL, expires INT DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT 'false' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql new file mode 100644 index 0000000000..8217faeab1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql @@ -0,0 +1 @@ +CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql new file mode 100644 index 0000000000..1d13c98da4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0163_index_ibexa_token_ibexa_token_unique.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql new file mode 100644 index 0000000000..612b0012d2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0164_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql new file mode 100644 index 0000000000..f9e3a7a770 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0165_fk_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentbrowsebookmark ADD CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON UPDATE NO ACTION ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql new file mode 100644 index 0000000000..a13558b04b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0166_fk_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ezcontentclass_attribute_ml ADD CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON UPDATE CASCADE ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql new file mode 100644 index 0000000000..973e602987 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/0167_fk_ibexa_token_ibexa_token_type_id_fk.sql @@ -0,0 +1 @@ +ALTER TABLE ibexa_token ADD CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql new file mode 100644 index 0000000000..c17884a304 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0001_insert_ezcobj_state.sql @@ -0,0 +1,3 @@ +INSERT INTO "ezcobj_state" ("default_language_id", "group_id", "id", "identifier", "language_mask", "priority") +VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql new file mode 100644 index 0000000000..cc78821e78 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0002_insert_ezcobj_state_group.sql @@ -0,0 +1,2 @@ +INSERT INTO "ezcobj_state_group" ("default_language_id", "id", "identifier", "language_mask") +VALUES (2, 2, 'ez_lock', 3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..609826a7c2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0003_insert_ezcobj_state_group_language.sql @@ -0,0 +1,2 @@ +INSERT INTO "ezcobj_state_group_language" ("contentobject_state_group_id", "description","language_id", "name", "real_language_id") +VALUES (2, '', 3, 'Lock', 2); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql new file mode 100644 index 0000000000..db716c0d84 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0004_insert_ezcobj_state_language.sql @@ -0,0 +1,3 @@ +INSERT INTO "ezcobj_state_language" ("contentobject_state_id", "description", "language_id", "name") +VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql new file mode 100644 index 0000000000..a0d990da69 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0005_insert_ezcobj_state_link.sql @@ -0,0 +1,13 @@ +INSERT INTO "ezcobj_state_link" ("contentobject_id", "contentobject_state_id") +VALUES ( 1, 1), + ( 4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql new file mode 100644 index 0000000000..7c748fde7d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0006_insert_ezcontent_language.sql @@ -0,0 +1,2 @@ +INSERT INTO "ezcontent_language" ("disabled", "id", "locale", "name") +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql new file mode 100644 index 0000000000..792d15f4ce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0007_insert_ezcontentclass.sql @@ -0,0 +1,7 @@ +INSERT INTO "ezcontentclass" ("always_available", "contentobject_name", "created", "creator_id", "id", "identifier", "initial_language_id", "is_container", "language_mask", "modified", "modifier_id", "remote_id", "serialized_description_list", "serialized_name_list", "sort_field", "sort_order", "url_alias_name", "version") +VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:"eng-GB";s:6:"Folder";}',1,1,NULL,0), + (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:"eng-GB";s:7:"Article";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:"eng-GB";s:10:"User group";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:"eng-GB";s:4:"User";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0), + (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',1,1,NULL,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..e00a5afc39 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0008_insert_ezcontentclass_attribute.sql @@ -0,0 +1,25 @@ +INSERT INTO "ezcontentclass_attribute" ("can_translate", "category", "contentclass_id", "data_float1", "data_float2", "data_float3", "data_float4", "data_int1", "data_int2", "data_int3", "data_int4", "data_text1", "data_text2", "data_text3", "data_text4", "data_text5", "data_type_string", "id", "identifier", "is_information_collector", "is_required", "is_searchable", "is_thumbnail", "placement", "serialized_data_text", "serialized_description_list", "serialized_name_list", "version") +VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,FALSE,1,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:4:"Name";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:10:"First name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Last name";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:12:"User account";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:7:"Caption";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,TRUE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,FALSE,3,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:17:"Short description";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Intro";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,FALSE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Body";s:16:"always-available";s:6:"eng-GB";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,FALSE,6,NULL,NULL,'a:2:{s:6:"eng-GB";s:15:"Enable comments";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,FALSE,1,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"Name";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Description";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:4:"File";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,FALSE,2,NULL,NULL,'a:2:{s:6:"eng-GB";s:11:"Short title";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,FALSE,3,NULL,NULL,'a:2:{s:6:"eng-GB";s:6:"Author";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,FALSE,7,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,FALSE,2,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:10:"Short name";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,FALSE,4,'N;','a:0:{}','a:1:{s:6:"eng-GB";s:11:"Description";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,FALSE,4,NULL,NULL,'a:2:{s:6:"eng-GB";s:9:"Signature";s:16:"always-available";s:6:"eng-GB";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,TRUE,5,NULL,NULL,'a:2:{s:6:"eng-GB";s:5:"Image";s:16:"always-available";s:6:"eng-GB";}',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..83aa440947 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0009_insert_ezcontentclass_classgroup.sql @@ -0,0 +1,7 @@ +INSERT INTO "ezcontentclass_classgroup" ("contentclass_id", "contentclass_version", "group_id", "group_name") +VALUES (1,0,1,'Content'), + (2,0,1,'Content'), + (3,0,2,'Users'), + (4,0,2,'Users'), + (5,0,3,'Media'), + (12,0,3,'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql new file mode 100644 index 0000000000..9ccdaaf91f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0010_insert_ezcontentclass_name.sql @@ -0,0 +1,7 @@ +INSERT INTO "ezcontentclass_name" ("contentclass_id", "contentclass_version", "language_id", "language_locale", "name") +VALUES (1,0,2,'eng-GB','Folder'), + (2,0,3,'eng-GB','Article'), + (3,0,3,'eng-GB','User group'), + (4,0,3,'eng-GB','User'), + (5,0,3,'eng-GB','Image'), + (12,0,3,'eng-GB','File'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql new file mode 100644 index 0000000000..0621f947ba --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0011_insert_ezcontentclassgroup.sql @@ -0,0 +1,4 @@ +INSERT INTO "ezcontentclassgroup" ("created", "creator_id", "id", "modified", "modifier_id", "name") +VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql new file mode 100644 index 0000000000..8d9a9b0b2a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0012_insert_ezcontentobject.sql @@ -0,0 +1,13 @@ +INSERT INTO "ezcontentobject" ("contentclass_id", "current_version", "id", "initial_language_id", "language_mask", "modified", "name", "owner_id", "published", "remote_id", "section_id", "status") +VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..34b8980372 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0013_insert_ezcontentobject_attribute.sql @@ -0,0 +1,41 @@ +INSERT INTO "ezcontentobject_attribute" ("attribute_original_id", "contentclassattribute_id", "contentobject_id", "data_float", "data_int", "data_text", "data_type_string", "id", "language_code", "language_id", "sort_key_int", "sort_key_string", "version") +VALUES (0,4,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,E'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,E'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,E'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,E'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,E'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,E'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,E'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,E'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,E'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,E'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,E'\n\n','ezimage',180,'eng-GB',3,0,'',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql new file mode 100644 index 0000000000..ac4544a1c6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0014_insert_ezcontentobject_name.sql @@ -0,0 +1,13 @@ +INSERT INTO "ezcontentobject_name" ("content_translation", "content_version", "contentobject_id", "language_id", "name", "real_translation") +VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql new file mode 100644 index 0000000000..261cb89e36 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0015_insert_ezcontentobject_tree.sql @@ -0,0 +1,14 @@ +INSERT INTO "ezcontentobject_tree" ("contentobject_id", "contentobject_is_published", "contentobject_version", "depth", "is_hidden", "is_invisible", "main_node_id", "modified_subnode", "node_id", "parent_node_id", "path_identification_string", "path_string", "priority", "remote_id", "sort_field", "sort_order") +VALUES (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql new file mode 100644 index 0000000000..498e2577b1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0016_insert_ezcontentobject_version.sql @@ -0,0 +1,13 @@ +INSERT INTO "ezcontentobject_version" ("contentobject_id", "created", "creator_id", "id", "initial_language_id", "language_mask", "modified", "status", "user_id", "version", "workflow_event_pos") +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql new file mode 100644 index 0000000000..bf8f363666 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0017_insert_eznode_assignment.sql @@ -0,0 +1,13 @@ +INSERT INTO "eznode_assignment" ("contentobject_id", "contentobject_version", "from_node_id", "id", "is_main", "op_code", "parent_node", "parent_remote_id", "remote_id", "sort_field", "sort_order", "priority", "is_hidden") +VALUES (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql new file mode 100644 index 0000000000..17d9668f7f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0018_insert_ezpolicy.sql @@ -0,0 +1,9 @@ +INSERT INTO "ezpolicy" ("function_name", "id", "module_name", "original_id", "role_id") +VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql new file mode 100644 index 0000000000..587bb93d15 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0019_insert_ezpolicy_limitation.sql @@ -0,0 +1,7 @@ +INSERT INTO "ezpolicy_limitation" ("id", "identifier", "policy_id") +VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..7c0e184943 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0020_insert_ezpolicy_limitation_value.sql @@ -0,0 +1,8 @@ +INSERT INTO "ezpolicy_limitation_value" ("id", "limitation_id", "value") +VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql new file mode 100644 index 0000000000..9d65153a4f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0021_insert_ezrole.sql @@ -0,0 +1,5 @@ +INSERT INTO "ezrole" ("id", "is_new", "name", "value", "version") +VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql new file mode 100644 index 0000000000..5b4c34ea06 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0022_insert_ezsection.sql @@ -0,0 +1,4 @@ +INSERT INTO "ezsection" ("id", "identifier", "locale", "name", "navigation_part_identifier") +VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql new file mode 100644 index 0000000000..92ea4ab159 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0023_insert_ezsite_data.sql @@ -0,0 +1,2 @@ +INSERT INTO "ezsite_data" ("name", "value") +VALUES ('ibexa-release','4.6'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql new file mode 100644 index 0000000000..60f8aa7a42 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0024_insert_ezurlalias.sql @@ -0,0 +1,13 @@ +INSERT INTO "ezurlalias" ("destination_url", "forward_to_id", "id", "is_imported", "is_internal", "is_wildcard", "source_md5", "source_url") +VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql new file mode 100644 index 0000000000..125c3e3393 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0025_insert_ezurlalias_ml.sql @@ -0,0 +1,26 @@ +INSERT INTO "ezurlalias_ml" ("action", "action_type", "alias_redirects", "id", "is_alias", "is_original", "lang_mask", "link", "parent", "text", "text_md5") +VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..257e76532c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0026_insert_ezurlalias_ml_incr.sql @@ -0,0 +1,4 @@ +INSERT INTO "ezurlalias_ml_incr" ("id") +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql new file mode 100644 index 0000000000..dd2c144a37 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0027_insert_ezuser.sql @@ -0,0 +1,3 @@ +INSERT INTO "ezuser" ("contentobject_id", "email", "login", "password_hash", "password_hash_type") +VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql new file mode 100644 index 0000000000..9e5ff0b7d2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0028_insert_ezuser_role.sql @@ -0,0 +1,7 @@ +INSERT INTO "ezuser_role" ("contentobject_id", "id", "limit_identifier", "limit_value", "role_id") +VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql new file mode 100644 index 0000000000..ba202749ca --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0029_insert_ezuser_setting.sql @@ -0,0 +1,3 @@ +INSERT INTO "ezuser_setting" ("is_enabled", "max_login", "user_id") +VALUES (1, 1000, 10), + (1, 10, 14); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql new file mode 100644 index 0000000000..4b87da9303 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0030_insert_ezpreferences.sql @@ -0,0 +1,2 @@ +INSERT INTO "ezpreferences" ("name", "user_id", "value") +SELECT 'focus_mode', u.contentobject_id, '0' FROM "ezuser" u WHERE u.login = 'admin'; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql new file mode 100644 index 0000000000..056312175f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0031_setval_ezcobj_state_group_id_seq.sql @@ -0,0 +1,2 @@ +-- Set proper sequence values after inserting data +SELECT SETVAL('ezcobj_state_group_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state_group; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql new file mode 100644 index 0000000000..c8e051aa09 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0032_setval_ezcobj_state_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcobj_state_id_seq', COALESCE(MAX(id), 1) ) FROM ezcobj_state; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql new file mode 100644 index 0000000000..a488f42672 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0033_setval_ezcontentbrowsebookmark_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentbrowsebookmark_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentbrowsebookmark; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql new file mode 100644 index 0000000000..e7945c3bf6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0034_setval_ezcontentclass_attribute_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentclass_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass_attribute; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql new file mode 100644 index 0000000000..1c15b1970e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0035_setval_ezcontentclass_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentclass_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclass; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql new file mode 100644 index 0000000000..67c66a320c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0036_setval_ezcontentclassgroup_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentclassgroup_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentclassgroup; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql new file mode 100644 index 0000000000..d8f66b1c65 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0037_setval_ezcontentobject_attribute_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentobject_attribute_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_attribute; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql new file mode 100644 index 0000000000..b21db5ae2f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0038_setval_ezcontentobject_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentobject_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql new file mode 100644 index 0000000000..8800566349 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0039_setval_ezcontentobject_link_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentobject_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_link; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql new file mode 100644 index 0000000000..0308bdc43c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0040_setval_ezcontentobject_tree_node_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentobject_tree_node_id_seq', COALESCE(MAX(node_id), 1) ) FROM ezcontentobject_tree; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql new file mode 100644 index 0000000000..dfd67783fd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0041_setval_ezcontentobject_version_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezcontentobject_version_id_seq', COALESCE(MAX(id), 1) ) FROM ezcontentobject_version; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql new file mode 100644 index 0000000000..48b5dc9a8e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0042_setval_ezimagefile_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezimagefile_id_seq', COALESCE(MAX(id), 1) ) FROM ezimagefile; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql new file mode 100644 index 0000000000..fa8e547c55 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0043_setval_ezkeyword_attribute_link_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezkeyword_attribute_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword_attribute_link; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql new file mode 100644 index 0000000000..8a3f1a9ae0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0044_setval_ezkeyword_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezkeyword_id_seq', COALESCE(MAX(id), 1) ) FROM ezkeyword; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql new file mode 100644 index 0000000000..1892a4da3d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0045_setval_eznode_assignment_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('eznode_assignment_id_seq', COALESCE(MAX(id), 1) ) FROM eznode_assignment; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql new file mode 100644 index 0000000000..f3e2e4c7a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0046_setval_eznotification_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('eznotification_id_seq', COALESCE(MAX(id), 1) ) FROM eznotification; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql new file mode 100644 index 0000000000..a0590cbafe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0047_setval_ezpackage_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezpackage_id_seq', COALESCE(MAX(id), 1) ) FROM ezpackage; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql new file mode 100644 index 0000000000..bea26a1658 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0048_setval_ezpolicy_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezpolicy_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql new file mode 100644 index 0000000000..32e1a5952c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0049_setval_ezpolicy_limitation_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezpolicy_limitation_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql new file mode 100644 index 0000000000..809801b081 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0050_setval_ezpolicy_limitation_value_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezpolicy_limitation_value_id_seq', COALESCE(MAX(id), 1) ) FROM ezpolicy_limitation_value; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql new file mode 100644 index 0000000000..47287e5919 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0051_setval_ezpreferences_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezpreferences_id_seq', COALESCE(MAX(id), 1) ) FROM ezpreferences; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql new file mode 100644 index 0000000000..994366ebbe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0052_setval_ezrole_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezrole_id_seq', COALESCE(MAX(id), 1) ) FROM ezrole; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql new file mode 100644 index 0000000000..6f91042d3b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0053_setval_ezsearch_object_word_link_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezsearch_object_word_link_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_object_word_link; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql new file mode 100644 index 0000000000..2a9b0dee98 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0054_setval_ezsearch_word_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezsearch_word_id_seq', COALESCE(MAX(id), 1) ) FROM ezsearch_word; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql new file mode 100644 index 0000000000..c5078959e5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0055_setval_ezsection_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezsection_id_seq', COALESCE(MAX(id), 1) ) FROM ezsection; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql new file mode 100644 index 0000000000..f80598be3f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0056_setval_ezurl_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezurl_id_seq', COALESCE(MAX(id), 1) ) FROM ezurl; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql new file mode 100644 index 0000000000..cd49369f7b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0057_setval_ezurlalias_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezurlalias_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql new file mode 100644 index 0000000000..277a5e62f8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0058_setval_ezurlalias_ml_incr_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezurlalias_ml_incr_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlalias_ml_incr; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql new file mode 100644 index 0000000000..7969e16eea --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0059_setval_ezurlwildcard_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezurlwildcard_id_seq', COALESCE(MAX(id), 1) ) FROM ezurlwildcard; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql new file mode 100644 index 0000000000..f2557a86a4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0060_setval_ezuser_accountkey_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezuser_accountkey_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_accountkey; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql new file mode 100644 index 0000000000..e2f0f7229c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/postgresql/data/0061_setval_ezuser_role_id_seq.sql @@ -0,0 +1 @@ +SELECT SETVAL('ezuser_role_id_seq', COALESCE(MAX(id), 1) ) FROM ezuser_role; diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql new file mode 100644 index 0000000000..0bf69c19ad --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0001_create_ezbinaryfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezbinaryfile (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, download_count INTEGER DEFAULT 0 NOT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, mime_type VARCHAR(255) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql new file mode 100644 index 0000000000..b1708d93c6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0002_create_ezcobj_state.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, priority INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql new file mode 100644 index 0000000000..acd97e80ae --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0003_index_ezcobj_state_ezcobj_state_priority.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_priority ON ezcobj_state (priority); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql new file mode 100644 index 0000000000..6d6498dfa3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0004_index_ezcobj_state_ezcobj_state_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_lmask ON ezcobj_state (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql new file mode 100644 index 0000000000..a622a7319b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0005_index_ezcobj_state_ezcobj_state_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcobj_state_identifier ON ezcobj_state (group_id, identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql new file mode 100644 index 0000000000..a312f68826 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0006_create_ezcobj_state_group.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, default_language_id BIGINT DEFAULT 0 NOT NULL, identifier VARCHAR(45) DEFAULT '' NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql new file mode 100644 index 0000000000..8693d6bab5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0007_index_ezcobj_state_group_ezcobj_state_group_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_state_group_lmask ON ezcobj_state_group (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql new file mode 100644 index 0000000000..36481c9271 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0008_index_ezcobj_state_group_ezcobj_state_group_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcobj_state_group_identifier ON ezcobj_state_group (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..bf099e3762 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0009_create_ezcobj_state_group_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_group_language (contentobject_state_group_id INTEGER DEFAULT 0 NOT NULL, real_language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_group_id, real_language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql new file mode 100644 index 0000000000..e0c93b23f4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0010_create_ezcobj_state_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_language (contentobject_state_id INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, description CLOB NOT NULL, name VARCHAR(45) DEFAULT '' NOT NULL, PRIMARY KEY(contentobject_state_id, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql new file mode 100644 index 0000000000..ab29b826f2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0011_create_ezcobj_state_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcobj_state_link (contentobject_id INTEGER DEFAULT 0 NOT NULL, contentobject_state_id INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(contentobject_id, contentobject_state_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql new file mode 100644 index 0000000000..3f3f93dd8f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0012_create_ezcontent_language.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontent_language (id BIGINT DEFAULT 0 NOT NULL, disabled INTEGER DEFAULT 0 NOT NULL, locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql new file mode 100644 index 0000000000..0a236b1d78 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0013_index_ezcontent_language_ezcontent_language_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontent_language_name ON ezcontent_language (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql new file mode 100644 index 0000000000..6f85547ed8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0014_create_ezuser.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser (contentobject_id INTEGER DEFAULT 0 NOT NULL, email VARCHAR(150) DEFAULT '' NOT NULL, login VARCHAR(150) DEFAULT '' NOT NULL, password_hash VARCHAR(255) DEFAULT NULL, password_hash_type INTEGER DEFAULT 1 NOT NULL, password_updated_at INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql new file mode 100644 index 0000000000..382bc2fe6f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0015_index_ezuser_ezuser_login.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezuser_login ON ezuser (login); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql new file mode 100644 index 0000000000..cd5fdd8520 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0016_create_ezcontentobject_tree.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_tree (node_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_is_published INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql new file mode 100644 index 0000000000..7a3cbafefc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0017_index_ezcontentobject_tree_ezcontentobject_tree_p_node_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_p_node_id ON ezcontentobject_tree (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql new file mode 100644 index 0000000000..a0694b8c61 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0018_index_ezcontentobject_tree_ezcontentobject_tree_path_ident.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_path_ident ON ezcontentobject_tree (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql new file mode 100644 index 0000000000..80dcea65d9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0019_index_ezcontentobject_tree_ezcontentobject_tree_contentobject_id_path_string.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_contentobject_id_path_string ON ezcontentobject_tree (path_string, contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql new file mode 100644 index 0000000000..9f76373cac --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0020_index_ezcontentobject_tree_ezcontentobject_tree_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_co_id ON ezcontentobject_tree (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql new file mode 100644 index 0000000000..d7b5136f63 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0021_index_ezcontentobject_tree_ezcontentobject_tree_depth.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_depth ON ezcontentobject_tree (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql new file mode 100644 index 0000000000..f0c7ac9ecc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0022_index_ezcontentobject_tree_ezcontentobject_tree_path.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_path ON ezcontentobject_tree (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql new file mode 100644 index 0000000000..87676071e9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0023_index_ezcontentobject_tree_modified_subnode.sql @@ -0,0 +1 @@ +CREATE INDEX modified_subnode ON ezcontentobject_tree (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql new file mode 100644 index 0000000000..22d066cdca --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0024_index_ezcontentobject_tree_ezcontentobject_tree_remote_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_tree_remote_id ON ezcontentobject_tree (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql new file mode 100644 index 0000000000..5e78454445 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0025_create_ezcontentbrowsebookmark.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentbrowsebookmark (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, node_id INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, CONSTRAINT ezcontentbrowsebookmark_location_fk FOREIGN KEY (node_id) REFERENCES ezcontentobject_tree (node_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE, CONSTRAINT ezcontentbrowsebookmark_user_fk FOREIGN KEY (user_id) REFERENCES ezuser (contentobject_id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql new file mode 100644 index 0000000000..659a26c514 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0026_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_location.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_location ON ezcontentbrowsebookmark (node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql new file mode 100644 index 0000000000..5b0696a7e8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0027_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_user ON ezcontentbrowsebookmark (user_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql new file mode 100644 index 0000000000..6c77193029 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0028_index_ezcontentbrowsebookmark_ezcontentbrowsebookmark_user_location.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentbrowsebookmark_user_location ON ezcontentbrowsebookmark (user_id, node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql new file mode 100644 index 0000000000..47fcb50231 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0029_create_ezcontentclass.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, always_available INTEGER DEFAULT 0 NOT NULL, contentobject_name VARCHAR(255) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, is_container INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB DEFAULT NULL, sort_field INTEGER DEFAULT 1 NOT NULL, sort_order INTEGER DEFAULT 1 NOT NULL, url_alias_name VARCHAR(255) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql new file mode 100644 index 0000000000..7fd0e3cfa1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0030_index_ezcontentclass_ezcontentclass_version.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_version ON ezcontentclass (version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql new file mode 100644 index 0000000000..24c8111651 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0031_index_ezcontentclass_ezcontentclass_identifier.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_identifier ON ezcontentclass (identifier, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..4afcafb110 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0032_create_ezcontentclass_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, can_translate INTEGER DEFAULT 1, category VARCHAR(25) DEFAULT '' NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, data_float1 DOUBLE PRECISION DEFAULT NULL, data_float2 DOUBLE PRECISION DEFAULT NULL, data_float3 DOUBLE PRECISION DEFAULT NULL, data_float4 DOUBLE PRECISION DEFAULT NULL, data_int1 INTEGER DEFAULT NULL, data_int2 INTEGER DEFAULT NULL, data_int3 INTEGER DEFAULT NULL, data_int4 INTEGER DEFAULT NULL, data_text1 VARCHAR(255) DEFAULT NULL, data_text2 VARCHAR(50) DEFAULT NULL, data_text3 VARCHAR(50) DEFAULT NULL, data_text4 VARCHAR(255) DEFAULT NULL, data_text5 CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '' NOT NULL, identifier VARCHAR(50) DEFAULT '' NOT NULL, is_information_collector INTEGER DEFAULT 0 NOT NULL, is_required INTEGER DEFAULT 0 NOT NULL, is_searchable INTEGER DEFAULT 0 NOT NULL, is_thumbnail BOOLEAN DEFAULT '0' NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, serialized_data_text CLOB DEFAULT NULL, serialized_description_list CLOB DEFAULT NULL, serialized_name_list CLOB NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql new file mode 100644 index 0000000000..7875734dae --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0033_index_ezcontentclass_attribute_ezcontentclass_attr_ccid.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attr_ccid ON ezcontentclass_attribute (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql new file mode 100644 index 0000000000..ba2700ac55 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0034_index_ezcontentclass_attribute_ezcontentclass_attr_dts.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attr_dts ON ezcontentclass_attribute (data_type_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql new file mode 100644 index 0000000000..e94bd6f294 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0035_create_ezcontentclass_attribute_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_attribute_ml (contentclass_attribute_id INTEGER NOT NULL, version INTEGER NOT NULL, language_id BIGINT NOT NULL, name VARCHAR(255) NOT NULL, description CLOB DEFAULT NULL, data_text CLOB DEFAULT NULL, data_json CLOB DEFAULT NULL, PRIMARY KEY(contentclass_attribute_id, version, language_id), CONSTRAINT ezcontentclass_attribute_ml_lang_fk FOREIGN KEY (language_id) REFERENCES ezcontent_language (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql new file mode 100644 index 0000000000..f17be3c68c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0036_index_ezcontentclass_attribute_ml_ezcontentclass_attribute_ml_lang_fk.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentclass_attribute_ml_lang_fk ON ezcontentclass_attribute_ml (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..25cac4ef2a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0037_create_ezcontentclass_classgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_classgroup (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, group_id INTEGER DEFAULT 0 NOT NULL, group_name VARCHAR(255) DEFAULT NULL, PRIMARY KEY(contentclass_id, contentclass_version, group_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql new file mode 100644 index 0000000000..776d327767 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0038_create_ezcontentclass_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclass_name (contentclass_id INTEGER DEFAULT 0 NOT NULL, contentclass_version INTEGER DEFAULT 0 NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, language_locale VARCHAR(20) DEFAULT '' NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, PRIMARY KEY(contentclass_id, contentclass_version, language_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql new file mode 100644 index 0000000000..7a7cde12e8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0039_create_ezcontentclassgroup.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentclassgroup (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, modifier_id INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, is_system BOOLEAN DEFAULT '0' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql new file mode 100644 index 0000000000..f1364cf079 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0040_create_ezcontentobject.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, current_version INTEGER DEFAULT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT NULL, section_id INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0, is_hidden BOOLEAN DEFAULT '0' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql new file mode 100644 index 0000000000..5dddc18819 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0041_index_ezcontentobject_ezcontentobject_classid.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_classid ON ezcontentobject (contentclass_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql new file mode 100644 index 0000000000..6fd63f61d8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0042_index_ezcontentobject_ezcontentobject_lmask.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_lmask ON ezcontentobject (language_mask); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql new file mode 100644 index 0000000000..022ffd1c54 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0043_index_ezcontentobject_ezcontentobject_pub.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_pub ON ezcontentobject (published); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql new file mode 100644 index 0000000000..2459702346 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0044_index_ezcontentobject_ezcontentobject_section.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_section ON ezcontentobject (section_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql new file mode 100644 index 0000000000..cb0f62d824 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0045_index_ezcontentobject_ezcontentobject_currentversion.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_currentversion ON ezcontentobject (current_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql new file mode 100644 index 0000000000..17c73894b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0046_index_ezcontentobject_ezcontentobject_owner.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_owner ON ezcontentobject (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql new file mode 100644 index 0000000000..f68fa6262f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0047_index_ezcontentobject_ezcontentobject_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_status ON ezcontentobject (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql new file mode 100644 index 0000000000..6e86f88cfe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0048_index_ezcontentobject_ezcontentobject_remote_id.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ezcontentobject_remote_id ON ezcontentobject (remote_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..13b2780ba6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0049_create_ezcontentobject_attribute.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_attribute (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, version INTEGER DEFAULT 0 NOT NULL, attribute_original_id INTEGER DEFAULT 0, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, data_float DOUBLE PRECISION DEFAULT NULL, data_int INTEGER DEFAULT NULL, data_text CLOB DEFAULT NULL, data_type_string VARCHAR(50) DEFAULT '', language_code VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, sort_key_int INTEGER DEFAULT 0 NOT NULL, sort_key_string VARCHAR(255) DEFAULT '' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql new file mode 100644 index 0000000000..6b23dbfdcb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0050_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver_lang_code.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_co_id_ver_lang_code ON ezcontentobject_attribute (contentobject_id, version, language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql new file mode 100644 index 0000000000..c8391d6730 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0051_index_ezcontentobject_attribute_ezcontentobject_classattr_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_classattr_id ON ezcontentobject_attribute (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql new file mode 100644 index 0000000000..320329b4f4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0052_index_ezcontentobject_attribute_sort_key_string.sql @@ -0,0 +1 @@ +CREATE INDEX sort_key_string ON ezcontentobject_attribute (sort_key_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql new file mode 100644 index 0000000000..31e10963b6 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0053_index_ezcontentobject_attribute_ezcontentobject_attribute_language_code.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_language_code ON ezcontentobject_attribute (language_code); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql new file mode 100644 index 0000000000..d89a560a80 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0054_index_ezcontentobject_attribute_sort_key_int.sql @@ -0,0 +1 @@ +CREATE INDEX sort_key_int ON ezcontentobject_attribute (sort_key_int); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql new file mode 100644 index 0000000000..3a0b46cb82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0055_index_ezcontentobject_attribute_ezcontentobject_attribute_co_id_ver.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_attribute_co_id_ver ON ezcontentobject_attribute (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql new file mode 100644 index 0000000000..9c80af1662 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0056_create_ezcontentobject_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclassattribute_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_id INTEGER DEFAULT 0 NOT NULL, from_contentobject_version INTEGER DEFAULT 0 NOT NULL, relation_type INTEGER DEFAULT 1 NOT NULL, to_contentobject_id INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql new file mode 100644 index 0000000000..c09dfefbf0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0057_index_ezcontentobject_link_ezco_link_to_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_to_co_id ON ezcontentobject_link (to_contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql new file mode 100644 index 0000000000..5553d5dbb9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0058_index_ezcontentobject_link_ezco_link_from.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_from ON ezcontentobject_link (from_contentobject_id, from_contentobject_version, contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql new file mode 100644 index 0000000000..576d349337 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0059_index_ezcontentobject_link_ezco_link_cca_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezco_link_cca_id ON ezcontentobject_link (contentclassattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql new file mode 100644 index 0000000000..330a997cdc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0060_create_ezcontentobject_name.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_name (contentobject_id INTEGER DEFAULT 0 NOT NULL, content_version INTEGER DEFAULT 0 NOT NULL, content_translation VARCHAR(20) DEFAULT '' NOT NULL, language_id BIGINT DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT NULL, real_translation VARCHAR(20) DEFAULT NULL, PRIMARY KEY(contentobject_id, content_version, content_translation)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql new file mode 100644 index 0000000000..a53893b840 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0061_index_ezcontentobject_name_ezcontentobject_name_lang_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_lang_id ON ezcontentobject_name (language_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql new file mode 100644 index 0000000000..d47ec6ff06 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0062_index_ezcontentobject_name_ezcontentobject_name_cov_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_cov_id ON ezcontentobject_name (content_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql new file mode 100644 index 0000000000..066bdd2ddf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0063_index_ezcontentobject_name_ezcontentobject_name_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontentobject_name_name ON ezcontentobject_name (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql new file mode 100644 index 0000000000..8cf7a78639 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0064_create_ezcontentobject_trash.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_trash (node_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, depth INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL, is_invisible INTEGER DEFAULT 0 NOT NULL, main_node_id INTEGER DEFAULT NULL, modified_subnode INTEGER DEFAULT 0, parent_node_id INTEGER DEFAULT 0 NOT NULL, path_identification_string CLOB DEFAULT NULL, path_string VARCHAR(255) DEFAULT '' NOT NULL, priority INTEGER DEFAULT 0 NOT NULL, remote_id VARCHAR(100) DEFAULT '' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, trashed INTEGER DEFAULT 0 NOT NULL, PRIMARY KEY(node_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql new file mode 100644 index 0000000000..22a5480ee9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0065_index_ezcontentobject_trash_ezcobj_trash_depth.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_depth ON ezcontentobject_trash (depth); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql new file mode 100644 index 0000000000..1b230d30c0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0066_index_ezcontentobject_trash_ezcobj_trash_p_node_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_p_node_id ON ezcontentobject_trash (parent_node_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql new file mode 100644 index 0000000000..e97fae979c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0067_index_ezcontentobject_trash_ezcobj_trash_path_ident.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_path_ident ON ezcontentobject_trash (path_identification_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql new file mode 100644 index 0000000000..4f2edf4230 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0068_index_ezcontentobject_trash_ezcobj_trash_co_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_co_id ON ezcontentobject_trash (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql new file mode 100644 index 0000000000..980553e6cc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0069_index_ezcontentobject_trash_ezcobj_trash_modified_subnode.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_modified_subnode ON ezcontentobject_trash (modified_subnode); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql new file mode 100644 index 0000000000..41f87ea995 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0070_index_ezcontentobject_trash_ezcobj_trash_path.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_trash_path ON ezcontentobject_trash (path_string); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql new file mode 100644 index 0000000000..73919870ef --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0071_create_ezcontentobject_version.sql @@ -0,0 +1 @@ +CREATE TABLE ezcontentobject_version (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, creator_id INTEGER DEFAULT 0 NOT NULL, initial_language_id BIGINT DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, status INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, workflow_event_pos INTEGER DEFAULT 0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql new file mode 100644 index 0000000000..eb1712c587 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0072_index_ezcontentobject_version_ezcobj_version_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_version_status ON ezcontentobject_version (status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql new file mode 100644 index 0000000000..d9ade282a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0073_index_ezcontentobject_version_idx_object_version_objver.sql @@ -0,0 +1 @@ +CREATE INDEX idx_object_version_objver ON ezcontentobject_version (contentobject_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql new file mode 100644 index 0000000000..f8b3625958 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0074_index_ezcontentobject_version_ezcontobj_version_obj_status.sql @@ -0,0 +1 @@ +CREATE INDEX ezcontobj_version_obj_status ON ezcontentobject_version (contentobject_id, status); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql new file mode 100644 index 0000000000..7ad71e9d33 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0075_index_ezcontentobject_version_ezcobj_version_creator_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezcobj_version_creator_id ON ezcontentobject_version (creator_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql new file mode 100644 index 0000000000..0dc2e4d0ff --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0076_create_ezdfsfile.sql @@ -0,0 +1 @@ +CREATE TABLE ezdfsfile (name_hash VARCHAR(34) DEFAULT '' NOT NULL, name CLOB NOT NULL, name_trunk CLOB NOT NULL, datatype VARCHAR(255) DEFAULT 'application/octet-stream' NOT NULL, scope VARCHAR(25) DEFAULT '' NOT NULL, size BIGINT UNSIGNED DEFAULT 0 NOT NULL, mtime INTEGER DEFAULT 0 NOT NULL, expired BOOLEAN DEFAULT '0' NOT NULL, status BOOLEAN DEFAULT '0' NOT NULL, PRIMARY KEY(name_hash)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql new file mode 100644 index 0000000000..a52478c504 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0077_index_ezdfsfile_ezdfsfile_name_trunk.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_name_trunk ON ezdfsfile (name_trunk); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql new file mode 100644 index 0000000000..b6a67a8141 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0078_index_ezdfsfile_ezdfsfile_expired_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_expired_name ON ezdfsfile (expired, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql new file mode 100644 index 0000000000..b1093dd031 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0079_index_ezdfsfile_ezdfsfile_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_name ON ezdfsfile (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql new file mode 100644 index 0000000000..74974918cf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0080_index_ezdfsfile_ezdfsfile_mtime.sql @@ -0,0 +1 @@ +CREATE INDEX ezdfsfile_mtime ON ezdfsfile (mtime); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql new file mode 100644 index 0000000000..a16efa09bf --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0081_create_ezgmaplocation.sql @@ -0,0 +1 @@ +CREATE TABLE ezgmaplocation (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_version INTEGER DEFAULT 0 NOT NULL, latitude DOUBLE PRECISION DEFAULT '0' NOT NULL, longitude DOUBLE PRECISION DEFAULT '0' NOT NULL, address VARCHAR(150) DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, contentobject_version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql new file mode 100644 index 0000000000..c71ce38856 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0082_index_ezgmaplocation_latitude_longitude_key.sql @@ -0,0 +1 @@ +CREATE INDEX latitude_longitude_key ON ezgmaplocation (latitude, longitude); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql new file mode 100644 index 0000000000..f22ea4c070 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0083_create_ezimagefile.sql @@ -0,0 +1 @@ +CREATE TABLE ezimagefile (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, filepath CLOB NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql new file mode 100644 index 0000000000..9fd53f1f99 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0084_index_ezimagefile_ezimagefile_file.sql @@ -0,0 +1 @@ +CREATE INDEX ezimagefile_file ON ezimagefile (filepath); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql new file mode 100644 index 0000000000..4aa9687e74 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0085_index_ezimagefile_ezimagefile_coid.sql @@ -0,0 +1 @@ +CREATE INDEX ezimagefile_coid ON ezimagefile (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql new file mode 100644 index 0000000000..5cba288e70 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0086_create_ezkeyword.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, class_id INTEGER DEFAULT 0 NOT NULL, keyword VARCHAR(255) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql new file mode 100644 index 0000000000..d8e144c201 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0087_index_ezkeyword_ezkeyword_keyword.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_keyword ON ezkeyword (keyword); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql new file mode 100644 index 0000000000..cd675686ed --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0088_create_ezkeyword_attribute_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezkeyword_attribute_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, keyword_id INTEGER DEFAULT 0 NOT NULL, objectattribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql new file mode 100644 index 0000000000..8d8572e8bd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0089_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_oaid ON ezkeyword_attribute_link (objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql new file mode 100644 index 0000000000..f07b97d9ab --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0090_index_ezkeyword_attribute_link_ezkeyword_attr_link_kid_oaid.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_kid_oaid ON ezkeyword_attribute_link (keyword_id, objectattribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql new file mode 100644 index 0000000000..0404bc617b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0091_index_ezkeyword_attribute_link_ezkeyword_attr_link_oaid_ver.sql @@ -0,0 +1 @@ +CREATE INDEX ezkeyword_attr_link_oaid_ver ON ezkeyword_attribute_link (objectattribute_id, version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql new file mode 100644 index 0000000000..5cc240e09b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0092_create_ezmedia.sql @@ -0,0 +1 @@ +CREATE TABLE ezmedia (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, version INTEGER DEFAULT 0 NOT NULL, controls VARCHAR(50) DEFAULT NULL, filename VARCHAR(255) DEFAULT '' NOT NULL, has_controller INTEGER DEFAULT 0, height INTEGER DEFAULT NULL, is_autoplay INTEGER DEFAULT 0, is_loop INTEGER DEFAULT 0, mime_type VARCHAR(50) DEFAULT '' NOT NULL, original_filename VARCHAR(255) DEFAULT '' NOT NULL, pluginspage VARCHAR(255) DEFAULT NULL, quality VARCHAR(50) DEFAULT NULL, width INTEGER DEFAULT NULL, PRIMARY KEY(contentobject_attribute_id, version)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql new file mode 100644 index 0000000000..5e822ef0c9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0093_create_eznode_assignment.sql @@ -0,0 +1 @@ +CREATE TABLE eznode_assignment (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, contentobject_version INTEGER DEFAULT NULL, from_node_id INTEGER DEFAULT 0, is_main INTEGER DEFAULT 0 NOT NULL, op_code INTEGER DEFAULT 0 NOT NULL, parent_node INTEGER DEFAULT NULL, parent_remote_id VARCHAR(100) DEFAULT '' NOT NULL, remote_id VARCHAR(100) DEFAULT '0' NOT NULL, sort_field INTEGER DEFAULT 1, sort_order INTEGER DEFAULT 1, priority INTEGER DEFAULT 0 NOT NULL, is_hidden INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql new file mode 100644 index 0000000000..5e5ed94263 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0094_index_eznode_assignment_eznode_assignment_is_main.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_is_main ON eznode_assignment (is_main); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql new file mode 100644 index 0000000000..987539c281 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0095_index_eznode_assignment_eznode_assignment_coid_cov.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_coid_cov ON eznode_assignment (contentobject_id, contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql new file mode 100644 index 0000000000..7c7225c18d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0096_index_eznode_assignment_eznode_assignment_parent_node.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_parent_node ON eznode_assignment (parent_node); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql new file mode 100644 index 0000000000..6b519ccc54 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0097_index_eznode_assignment_eznode_assignment_co_version.sql @@ -0,0 +1 @@ +CREATE INDEX eznode_assignment_co_version ON eznode_assignment (contentobject_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql new file mode 100644 index 0000000000..3f6a172e7c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0098_create_eznotification.sql @@ -0,0 +1 @@ +CREATE TABLE eznotification (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, owner_id INTEGER DEFAULT 0 NOT NULL, is_pending BOOLEAN DEFAULT '1' NOT NULL, type VARCHAR(128) DEFAULT '' NOT NULL, created INTEGER DEFAULT 0 NOT NULL, data CLOB DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql new file mode 100644 index 0000000000..862b80ddf5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0099_index_eznotification_eznotification_owner_is_pending.sql @@ -0,0 +1 @@ +CREATE INDEX eznotification_owner_is_pending ON eznotification (owner_id, is_pending); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql new file mode 100644 index 0000000000..b621afd705 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0100_index_eznotification_eznotification_owner.sql @@ -0,0 +1 @@ +CREATE INDEX eznotification_owner ON eznotification (owner_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql new file mode 100644 index 0000000000..18c04aae4b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0101_create_ezpackage.sql @@ -0,0 +1 @@ +CREATE TABLE ezpackage (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, install_date INTEGER DEFAULT 0 NOT NULL, name VARCHAR(100) DEFAULT '' NOT NULL, version VARCHAR(30) DEFAULT '0' NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql new file mode 100644 index 0000000000..0ea197813d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0102_create_ezpolicy.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, function_name VARCHAR(255) DEFAULT NULL, module_name VARCHAR(255) DEFAULT NULL, original_id INTEGER DEFAULT 0 NOT NULL, role_id INTEGER DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql new file mode 100644 index 0000000000..366c989ec0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0103_index_ezpolicy_ezpolicy_role_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_role_id ON ezpolicy (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql new file mode 100644 index 0000000000..9a3d4f8171 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0104_index_ezpolicy_ezpolicy_original_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_original_id ON ezpolicy (original_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql new file mode 100644 index 0000000000..79c443ef85 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0105_create_ezpolicy_limitation.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, policy_id INTEGER DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql new file mode 100644 index 0000000000..6640c10ce8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0106_index_ezpolicy_limitation_policy_id.sql @@ -0,0 +1 @@ +CREATE INDEX policy_id ON ezpolicy_limitation (policy_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..08bd1cf9d0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0107_create_ezpolicy_limitation_value.sql @@ -0,0 +1 @@ +CREATE TABLE ezpolicy_limitation_value (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, limitation_id INTEGER DEFAULT NULL, value VARCHAR(255) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql new file mode 100644 index 0000000000..446a27fdaa --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0108_index_ezpolicy_limitation_value_ezpolicy_limit_value_limit_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_limit_value_limit_id ON ezpolicy_limitation_value (limitation_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql new file mode 100644 index 0000000000..8c0458bdde --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0109_index_ezpolicy_limitation_value_ezpolicy_limitation_value_val.sql @@ -0,0 +1 @@ +CREATE INDEX ezpolicy_limitation_value_val ON ezpolicy_limitation_value (value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql new file mode 100644 index 0000000000..3b64a2bfba --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0110_create_ezpreferences.sql @@ -0,0 +1 @@ +CREATE TABLE ezpreferences (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, name VARCHAR(100) DEFAULT NULL, user_id INTEGER DEFAULT 0 NOT NULL, value CLOB DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql new file mode 100644 index 0000000000..e8330b63d4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0111_index_ezpreferences_ezpreferences_user_id_idx.sql @@ -0,0 +1 @@ +CREATE INDEX ezpreferences_user_id_idx ON ezpreferences (user_id, name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql new file mode 100644 index 0000000000..e33390d2a3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0112_index_ezpreferences_ezpreferences_name.sql @@ -0,0 +1 @@ +CREATE INDEX ezpreferences_name ON ezpreferences (name); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql new file mode 100644 index 0000000000..a712365e6b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0113_create_ezrole.sql @@ -0,0 +1 @@ +CREATE TABLE ezrole (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, is_new INTEGER DEFAULT 0 NOT NULL, name VARCHAR(255) DEFAULT '' NOT NULL, value CHAR(1) DEFAULT NULL, version INTEGER DEFAULT 0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql new file mode 100644 index 0000000000..568edef679 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0114_create_ezsearch_object_word_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_object_word_link (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentclass_attribute_id INTEGER DEFAULT 0 NOT NULL, contentclass_id INTEGER DEFAULT 0 NOT NULL, contentobject_id INTEGER DEFAULT 0 NOT NULL, frequency DOUBLE PRECISION DEFAULT '0' NOT NULL, identifier VARCHAR(255) DEFAULT '' NOT NULL, integer_value INTEGER DEFAULT 0 NOT NULL, next_word_id INTEGER DEFAULT 0 NOT NULL, placement INTEGER DEFAULT 0 NOT NULL, prev_word_id INTEGER DEFAULT 0 NOT NULL, published INTEGER DEFAULT 0 NOT NULL, section_id INTEGER DEFAULT 0 NOT NULL, word_id INTEGER DEFAULT 0 NOT NULL, language_mask BIGINT DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql new file mode 100644 index 0000000000..fb984de9f9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0115_index_ezsearch_object_word_link_ezsearch_object_word_link_object.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_object ON ezsearch_object_word_link (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql new file mode 100644 index 0000000000..724819087d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0116_index_ezsearch_object_word_link_ezsearch_object_word_link_identifier.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_identifier ON ezsearch_object_word_link (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql new file mode 100644 index 0000000000..9c46453535 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0117_index_ezsearch_object_word_link_ezsearch_object_word_link_integer_value.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_integer_value ON ezsearch_object_word_link (integer_value); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql new file mode 100644 index 0000000000..058c9b9de2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0118_index_ezsearch_object_word_link_ezsearch_object_word_link_word.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_word ON ezsearch_object_word_link (word_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql new file mode 100644 index 0000000000..6864b9d5b8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0119_index_ezsearch_object_word_link_ezsearch_object_word_link_frequency.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_object_word_link_frequency ON ezsearch_object_word_link (frequency); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql new file mode 100644 index 0000000000..bea025a97c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0120_create_ezsearch_word.sql @@ -0,0 +1 @@ +CREATE TABLE ezsearch_word (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, object_count INTEGER DEFAULT 0 NOT NULL, word VARCHAR(150) DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql new file mode 100644 index 0000000000..d1f15870a4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0121_index_ezsearch_word_ezsearch_word_word_i.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_word_word_i ON ezsearch_word (word); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql new file mode 100644 index 0000000000..ee7a50072c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0122_index_ezsearch_word_ezsearch_word_obj_count.sql @@ -0,0 +1 @@ +CREATE INDEX ezsearch_word_obj_count ON ezsearch_word (object_count); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql new file mode 100644 index 0000000000..6e77c80b0a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0123_create_ezsection.sql @@ -0,0 +1 @@ +CREATE TABLE ezsection (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(255) DEFAULT NULL, locale VARCHAR(255) DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, navigation_part_identifier VARCHAR(100) DEFAULT 'ezcontentnavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql new file mode 100644 index 0000000000..0cabe9726b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0124_create_ezsite_data.sql @@ -0,0 +1 @@ +CREATE TABLE ezsite_data (name VARCHAR(60) DEFAULT '' NOT NULL, value CLOB NOT NULL, PRIMARY KEY(name)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql new file mode 100644 index 0000000000..40720c87df --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0125_create_ezurl.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, created INTEGER DEFAULT 0 NOT NULL, is_valid INTEGER DEFAULT 1 NOT NULL, last_checked INTEGER DEFAULT 0 NOT NULL, modified INTEGER DEFAULT 0 NOT NULL, original_url_md5 VARCHAR(32) DEFAULT '' NOT NULL, url CLOB DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql new file mode 100644 index 0000000000..d49afdc63d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0126_index_ezurl_ezurl_url.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_url ON ezurl (url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql new file mode 100644 index 0000000000..4457d5a9ca --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0127_create_ezurl_object_link.sql @@ -0,0 +1 @@ +CREATE TABLE ezurl_object_link (contentobject_attribute_id INTEGER DEFAULT 0 NOT NULL, contentobject_attribute_version INTEGER DEFAULT 0 NOT NULL, url_id INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql new file mode 100644 index 0000000000..67e46a38fe --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0128_index_ezurl_object_link_ezurl_ol_coa_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_id ON ezurl_object_link (contentobject_attribute_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql new file mode 100644 index 0000000000..6b9fa680c3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0129_index_ezurl_object_link_ezurl_ol_url_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_url_id ON ezurl_object_link (url_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql new file mode 100644 index 0000000000..0160b9c1a3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0130_index_ezurl_object_link_ezurl_ol_coa_version.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_version ON ezurl_object_link (contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql new file mode 100644 index 0000000000..e2b3d317a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0131_index_ezurl_object_link_ezurl_ol_coa_id_cav.sql @@ -0,0 +1 @@ +CREATE INDEX ezurl_ol_coa_id_cav ON ezurl_object_link (contentobject_attribute_id, contentobject_attribute_version); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql new file mode 100644 index 0000000000..46fd22ba70 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0132_create_ezurlalias.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, forward_to_id INTEGER DEFAULT 0 NOT NULL, is_imported INTEGER DEFAULT 0 NOT NULL, is_internal INTEGER DEFAULT 1 NOT NULL, is_wildcard INTEGER DEFAULT 0 NOT NULL, source_md5 VARCHAR(32) DEFAULT NULL, source_url CLOB NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql new file mode 100644 index 0000000000..b447996855 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0133_index_ezurlalias_ezurlalias_source_md5.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_source_md5 ON ezurlalias (source_md5); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql new file mode 100644 index 0000000000..c884362677 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0134_index_ezurlalias_ezurlalias_wcard_fwd.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_wcard_fwd ON ezurlalias (is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql new file mode 100644 index 0000000000..2cd160e33f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0135_index_ezurlalias_ezurlalias_forward_to_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_forward_to_id ON ezurlalias (forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql new file mode 100644 index 0000000000..062366e854 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0136_index_ezurlalias_ezurlalias_imp_wcard_fwd.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_imp_wcard_fwd ON ezurlalias (is_imported, is_wildcard, forward_to_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql new file mode 100644 index 0000000000..aa37643b1e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0137_index_ezurlalias_ezurlalias_source_url.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_source_url ON ezurlalias (source_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql new file mode 100644 index 0000000000..07e4107f82 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0138_index_ezurlalias_ezurlalias_desturl.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_desturl ON ezurlalias (destination_url); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql new file mode 100644 index 0000000000..fc7ced0139 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0139_create_ezurlalias_ml.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml (parent INTEGER DEFAULT 0 NOT NULL, text_md5 VARCHAR(32) DEFAULT '' NOT NULL, "action" CLOB NOT NULL, action_type VARCHAR(32) DEFAULT '' NOT NULL, alias_redirects INTEGER DEFAULT 1 NOT NULL, id INTEGER DEFAULT 0 NOT NULL, is_alias INTEGER DEFAULT 0 NOT NULL, is_original INTEGER DEFAULT 0 NOT NULL, lang_mask BIGINT DEFAULT 0 NOT NULL, link INTEGER DEFAULT 0 NOT NULL, text CLOB NOT NULL, PRIMARY KEY(parent, text_md5)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql new file mode 100644 index 0000000000..84fd80638b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0140_index_ezurlalias_ml_ezurlalias_ml_actt_org_al.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_actt_org_al ON ezurlalias_ml (action_type, is_original, is_alias); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql new file mode 100644 index 0000000000..b33960fcad --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0141_index_ezurlalias_ml_ezurlalias_ml_text_lang.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_text_lang ON ezurlalias_ml (text, lang_mask, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql new file mode 100644 index 0000000000..c3f47f4bb7 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0142_index_ezurlalias_ml_ezurlalias_ml_par_act_id_lnk.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_par_act_id_lnk ON ezurlalias_ml ("action", id, link, parent); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql new file mode 100644 index 0000000000..8a9145ac6c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0143_index_ezurlalias_ml_ezurlalias_ml_par_lnk_txt.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_par_lnk_txt ON ezurlalias_ml (parent, text, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql new file mode 100644 index 0000000000..2a952aa64e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0144_index_ezurlalias_ml_ezurlalias_ml_act_org.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_act_org ON ezurlalias_ml ("action", is_original); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql new file mode 100644 index 0000000000..139b8c5f68 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0145_index_ezurlalias_ml_ezurlalias_ml_text.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_text ON ezurlalias_ml (text, id, link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql new file mode 100644 index 0000000000..5e0c908085 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0146_index_ezurlalias_ml_ezurlalias_ml_link.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_link ON ezurlalias_ml (link); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql new file mode 100644 index 0000000000..91393fd7ee --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0147_index_ezurlalias_ml_ezurlalias_ml_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezurlalias_ml_id ON ezurlalias_ml (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..b559dae946 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0148_create_ezurlalias_ml_incr.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlalias_ml_incr (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql new file mode 100644 index 0000000000..4fef3f6bce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0149_create_ezurlwildcard.sql @@ -0,0 +1 @@ +CREATE TABLE ezurlwildcard (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, destination_url CLOB NOT NULL, source_url CLOB NOT NULL, type INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql new file mode 100644 index 0000000000..0644e63339 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0150_create_ezuser_accountkey.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_accountkey (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, hash_key VARCHAR(32) DEFAULT '' NOT NULL, time INTEGER DEFAULT 0 NOT NULL, user_id INTEGER DEFAULT 0 NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql new file mode 100644 index 0000000000..b6d4c50c07 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0151_index_ezuser_accountkey_hash_key.sql @@ -0,0 +1 @@ +CREATE INDEX hash_key ON ezuser_accountkey (hash_key); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql new file mode 100644 index 0000000000..045b996bbd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0152_create_ezuser_role.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_role (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, contentobject_id INTEGER DEFAULT NULL, limit_identifier VARCHAR(255) DEFAULT '', limit_value VARCHAR(255) DEFAULT '', role_id INTEGER DEFAULT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql new file mode 100644 index 0000000000..2224306ce1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0153_index_ezuser_role_ezuser_role_role_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezuser_role_role_id ON ezuser_role (role_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql new file mode 100644 index 0000000000..2f779bf8a1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0154_index_ezuser_role_ezuser_role_contentobject_id.sql @@ -0,0 +1 @@ +CREATE INDEX ezuser_role_contentobject_id ON ezuser_role (contentobject_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql new file mode 100644 index 0000000000..5d10f19c92 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0155_create_ezuser_setting.sql @@ -0,0 +1 @@ +CREATE TABLE ezuser_setting (user_id INTEGER DEFAULT 0 NOT NULL, is_enabled INTEGER DEFAULT 0 NOT NULL, max_login INTEGER DEFAULT NULL, PRIMARY KEY(user_id)); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql new file mode 100644 index 0000000000..8d12ee2b45 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0156_create_ibexa_setting.sql @@ -0,0 +1,2 @@ +CREATE TABLE ibexa_setting (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "group" VARCHAR(128) NOT NULL, identifier VARCHAR(128) NOT NULL, value CLOB NOT NULL --(DC2Type:json) +); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql new file mode 100644 index 0000000000..d6f3d3b0dc --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0157_index_ibexa_setting_ibexa_setting_id.sql @@ -0,0 +1 @@ +CREATE INDEX ibexa_setting_id ON ibexa_setting (id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql new file mode 100644 index 0000000000..e2a05c6a8d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0158_index_ibexa_setting_ibexa_setting_group_identifier.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_setting_group_identifier ON ibexa_setting ("group", identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql new file mode 100644 index 0000000000..56545a77df --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0159_create_ibexa_token_type.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token_type (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, identifier VARCHAR(64) NOT NULL); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql new file mode 100644 index 0000000000..17f4b2cf68 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0160_index_ibexa_token_type_ibexa_token_type_unique.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_token_type_unique ON ibexa_token_type (identifier); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql new file mode 100644 index 0000000000..4ccb1fc31a --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0161_create_ibexa_token.sql @@ -0,0 +1 @@ +CREATE TABLE ibexa_token (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, type_id INTEGER NOT NULL, token VARCHAR(255) NOT NULL, identifier VARCHAR(128) DEFAULT NULL, created INTEGER DEFAULT 0 NOT NULL, expires INTEGER DEFAULT 0 NOT NULL, revoked BOOLEAN DEFAULT '0' NOT NULL, CONSTRAINT ibexa_token_type_id_fk FOREIGN KEY (type_id) REFERENCES ibexa_token_type (id) ON DELETE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql new file mode 100644 index 0000000000..8217faeab1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0162_index_ibexa_token_IDX_B5412887C54C8C93.sql @@ -0,0 +1 @@ +CREATE INDEX IDX_B5412887C54C8C93 ON ibexa_token (type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql new file mode 100644 index 0000000000..1d13c98da4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/0163_index_ibexa_token_ibexa_token_unique.sql @@ -0,0 +1 @@ +CREATE UNIQUE INDEX ibexa_token_unique ON ibexa_token (token, identifier, type_id); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql new file mode 100644 index 0000000000..64e0eacdd1 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0001_insert_ezcobj_state.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezcobj_state` (`default_language_id`, `group_id`, `id`, `identifier`, `language_mask`, `priority`) +VALUES (2, 2, 1, 'not_locked', 3, 0), + (2, 2, 2, 'locked', 3, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql new file mode 100644 index 0000000000..677a43ca5c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0002_insert_ezcobj_state_group.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcobj_state_group` (`default_language_id`, `id`, `identifier`, `language_mask`) +VALUES (2,2,'ez_lock',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql new file mode 100644 index 0000000000..9930341865 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0003_insert_ezcobj_state_group_language.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcobj_state_group_language` (`contentobject_state_group_id`, `description`, `language_id`, `name`, `real_language_id`) +VALUES (2,'',3,'Lock',2); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql new file mode 100644 index 0000000000..dc7872d95b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0004_insert_ezcobj_state_language.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezcobj_state_language` (`contentobject_state_id`, `description`, `language_id`, `name`) +VALUES (1,'',3,'Not locked'), + (2,'',3,'Locked'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql new file mode 100644 index 0000000000..9a0dd8d0e9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0005_insert_ezcobj_state_link.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcobj_state_link` (`contentobject_id`, `contentobject_state_id`) +VALUES (1, 1), + (4, 1), + (10, 1), + (11, 1), + (12, 1), + (13, 1), + (14, 1), + (41, 1), + (42, 1), + (49, 1), + (50, 1), + (51, 1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql new file mode 100644 index 0000000000..97bfa86644 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0006_insert_ezcontent_language.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezcontent_language` (`disabled`, `id`, `locale`, `name`) +VALUES (0, 2, 'eng-GB', 'English (United Kingdom)'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql new file mode 100644 index 0000000000..540efcb3ef --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0007_insert_ezcontentclass.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass` (`always_available`, `contentobject_name`, `created`, `creator_id`, `id`, `identifier`, `initial_language_id`, `is_container`, `language_mask`, `modified`, `modifier_id`, `remote_id`, `serialized_description_list`, `serialized_name_list`, `sort_field`, `sort_order`, `url_alias_name`, `version`) +VALUES (1,'',1024392098,14,1,'folder',2,1,2,1448831672,14,'a3d405b81be900468eb153d774f4f0d2','a:0:{}','a:1:{s:6:\"eng-GB\";s:6:\"Folder\";}',1,1,NULL,0), + (0,'',1024392098,14,2,'article',2,1,3,1082454989,14,'c15b600eb9198b1924063b5a68758232',NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Article\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1024392098,14,3,'user_group',2,1,3,1048494743,14,'25b4268cdcd01921b808a0d854b877ef',NULL,'a:2:{s:6:\"eng-GB\";s:10:\"User group\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,' ',1024392098,14,4,'user',2,0,3,1082018364,14,'40faa822edc579b02c25f6bb7beec3ad',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"User\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1031484992,14,5,'image',2,0,3,1048494784,14,'f6df12aa74e36230eb675f364fccd25a',NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0), + (1,'',1052385472,14,12,'file',2,0,3,1052385669,14,'637d58bfddf164627bdfd265733280a0',NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',1,1,NULL,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql new file mode 100644 index 0000000000..30ad516ff8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0008_insert_ezcontentclass_attribute.sql @@ -0,0 +1,25 @@ +INSERT INTO `ezcontentclass_attribute` (`can_translate`, `category`, `contentclass_id`, `data_float1`, `data_float2`, `data_float3`, `data_float4`, `data_int1`, `data_int2`, `data_int3`, `data_int4`, `data_text1`, `data_text2`, `data_text3`, `data_text4`, `data_text5`, `data_type_string`, `id`, `identifier`, `is_information_collector`, `is_required`, `is_searchable`, `is_thumbnail`, `placement`, `serialized_data_text`, `serialized_description_list`, `serialized_name_list`, `version`) +VALUES (1,'',2,0,0,0,0,255,0,0,0,'New article','','','','','ezstring',1,'title',0,1,1,1,0,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,255,0,NULL,NULL,'Folder',NULL,NULL,NULL,NULL,'ezstring',4,'name',0,1,1,0,1,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:4:\"Name\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',6,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',3,0,0,0,0,255,0,0,0,'','','','',NULL,'ezstring',7,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',8,'first_name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:10:\"First name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,0,0,0,0,255,0,0,0,'','','','','','ezstring',9,'last_name',0,1,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Last name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',4,0,0,0,0,7,10,0,0,'','^[^@]+$','','','','ezuser',12,'user_account',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:12:\"User account\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,150,0,0,0,'','','','',NULL,'ezstring',116,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',117,'caption',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:7:\"Caption\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',5,10.0,0,0,0,0,0,0,0,'MB','','','',NULL,'ezimage',118,'image',0,0,1,1,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,5,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',119,'short_description',0,0,1,0,3,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:17:\"Short description\";}',0), + (1,'',2,0,0,0,0,10,0,0,0,'','','','','','ezrichtext',120,'intro',0,1,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Intro\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,20,0,0,0,'','','','','','ezrichtext',121,'body',0,0,1,0,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Body\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (0,'',2,0,0,0,0,0,0,0,0,'','','','','','ezboolean',123,'enable_comments',0,0,0,0,6,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:15:\"Enable comments\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'New file','','','',NULL,'ezstring',146,'name',0,1,1,0,1,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"Name\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,10,0,0,0,'','','','',NULL,'ezrichtext',147,'description',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Description\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',12,0,0,0,0,0,0,0,0,'','','','',NULL,'ezbinaryfile',148,'file',0,1,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:4:\"File\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,255,0,0,0,'','','','','','ezstring',152,'short_title',0,0,1,0,2,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:11:\"Short title\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,1,0,0,0,'','','','','','ezauthor',153,'author',0,0,0,0,3,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:6:\"Author\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',2,0,0,0,0,0,0,0,0,'','','','','','ezobjectrelation',154,'image',0,0,1,0,7,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,100,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezstring',155,'short_name',0,0,1,0,2,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:10:\"Short name\";}',0), + (1,'',1,NULL,NULL,NULL,NULL,20,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'ezrichtext',156,'description',0,0,1,0,4,'N;','a:0:{}','a:1:{s:6:\"eng-GB\";s:11:\"Description\";}',0), + (1,'',4,0,0,0,0,10,0,0,0,'','','','','','eztext',179,'signature',0,0,1,0,4,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:9:\"Signature\";s:16:\"always-available\";s:6:\"eng-GB\";}',0), + (1,'',4,10.0,0,0,0,0,0,0,0,'MB','','','','','ezimage',180,'image',0,0,0,1,5,NULL,NULL,'a:2:{s:6:\"eng-GB\";s:5:\"Image\";s:16:\"always-available\";s:6:\"eng-GB\";}',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql new file mode 100644 index 0000000000..ffa17693b0 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0009_insert_ezcontentclass_classgroup.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass_classgroup` (`contentclass_id`, `contentclass_version`, `group_id`, `group_name`) +VALUES (1, 0, 1, 'Content'), + (2, 0, 1, 'Content'), + (3, 0, 2, 'Users'), + (4, 0, 2, 'Users'), + (5, 0, 3, 'Media'), + (12, 0, 3, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql new file mode 100644 index 0000000000..1f517c87e3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0010_insert_ezcontentclass_name.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezcontentclass_name` (`contentclass_id`, `contentclass_version`, `language_id`, `language_locale`, `name`) +VALUES (1, 0, 2, 'eng-GB', 'Folder'), + (2, 0, 3, 'eng-GB', 'Article'), + (3, 0, 3, 'eng-GB', 'User group'), + (4, 0, 3, 'eng-GB', 'User'), + (5, 0, 3, 'eng-GB', 'Image'), + (12, 0, 3, 'eng-GB', 'File'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql new file mode 100644 index 0000000000..61aea82715 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0011_insert_ezcontentclassgroup.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezcontentclassgroup` (`created`, `creator_id`, `id`, `modified`, `modifier_id`, `name`) +VALUES (1031216928, 14, 1, 1033922106, 14, 'Content'), + (1031216941, 14, 2, 1033922113, 14, 'Users'), + (1032009743, 14, 3, 1033922120, 14, 'Media'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql new file mode 100644 index 0000000000..c18bc54f7d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0012_insert_ezcontentobject.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject` (`contentclass_id`, `current_version`, `id`, `initial_language_id`, `language_mask`, `modified`, `name`, `owner_id`, `published`, `remote_id`, `section_id`, `status`) +VALUES (1,9,1,2,3,1448889046,'Ibexa Platform',14,1448889046,'9459d3c29e15006e45197295722c7ade',1,1), + (3,1,4,2,3,1033917596,'Users',14,1033917596,'f5c88a2209584891056f987fd965b0ba',2,1), + (4,2,10,2,3,1072180405,'Anonymous User',14,1033920665,'faaeb9be3bd98ed09f606fc16d144eca',2,1), + (3,1,11,2,3,1033920746,'Guest accounts',14,1033920746,'5f7f0bdb3381d6a461d8c29ff53d908f',2,1), + (3,1,12,2,3,1033920775,'Administrator users',14,1033920775,'9b47a45624b023b1a76c73b74d704acf',2,1), + (3,1,13,2,3,1033920794,'Editors',14,1033920794,'3c160cca19fb135f83bd02d911f04db2',2,1), + (4,3,14,2,3,1301062024,'Administrator User',14,1033920830,'1bb4fe25487f05527efa8bfd394cecc7',2,1), + (1,1,41,2,3,1060695457,'Media',14,1060695457,'a6e35cbcb7cd6ae4b691f3eee30cd262',3,1), + (3,1,42,2,3,1072180330,'Anonymous users',14,1072180330,'15b256dbea2ae72418ff5facc999e8f9',2,1), + (1,1,49,2,3,1080220197,'Images',14,1080220197,'e7ff633c6b8e0fd3531e74c6e712bead',3,1), + (1,1,50,2,3,1080220220,'Files',14,1080220220,'732a5acd01b51a6fe6eab448ad4138a9',3,1), + (1,1,51,2,3,1080220233,'Multimedia',14,1080220233,'09082deb98662a104f325aaa8c4933d3',3,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql new file mode 100644 index 0000000000..d2ec35a36f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0013_insert_ezcontentobject_attribute.sql @@ -0,0 +1,41 @@ +INSERT INTO `ezcontentobject_attribute` (`attribute_original_id`, `contentclassattribute_id`, `contentobject_id`, `data_float`, `data_int`, `data_text`, `data_type_string`, `id`, `language_code`, `language_id`, `sort_key_int`, `sort_key_string`, `version`) +VALUES (0,4,1,NULL,NULL,'Ibexa Platform','ezstring',1,'eng-GB',3,0,'ibexa platform',9), + (0,119,1,NULL,NULL,'
You are now ready to start your project.
','ezrichtext',2,'eng-GB',3,0,'',9), + (0,7,4,NULL,NULL,'Main group','ezstring',7,'eng-GB',3,0,'',1), + (0,6,4,NULL,NULL,'Users','ezstring',8,'eng-GB',3,0,'',1), + (0,8,10,0,0,'Anonymous','ezstring',19,'eng-GB',3,0,'anonymous',2), + (0,9,10,0,0,'User','ezstring',20,'eng-GB',3,0,'user',2), + (0,12,10,0,0,'','ezuser',21,'eng-GB',3,0,'',2), + (0,6,11,0,0,'Guest accounts','ezstring',22,'eng-GB',3,0,'',1), + (0,7,11,0,0,'','ezstring',23,'eng-GB',3,0,'',1), + (0,6,12,0,0,'Administrator users','ezstring',24,'eng-GB',3,0,'',1), + (0,7,12,0,0,'','ezstring',25,'eng-GB',3,0,'',1), + (0,6,13,0,0,'Editors','ezstring',26,'eng-GB',3,0,'',1), + (0,7,13,0,0,'','ezstring',27,'eng-GB',3,0,'',1), + (0,8,14,0,0,'Administrator','ezstring',28,'eng-GB',3,0,'administrator',3), + (0,9,14,0,0,'User','ezstring',29,'eng-GB',3,0,'user',3), + (30,12,14,0,0,'','ezuser',30,'eng-GB',3,0,'',3), + (0,4,41,0,0,'Media','ezstring',98,'eng-GB',3,0,'',1), + (0,119,41,0,1045487555,'\n
\n','ezrichtext',99,'eng-GB',3,0,'',1), + (0,6,42,0,0,'Anonymous users','ezstring',100,'eng-GB',3,0,'anonymous users',1), + (0,7,42,0,0,'User group for the anonymous user','ezstring',101,'eng-GB',3,0,'user group for the anonymous user',1), + (0,155,1,NULL,NULL,'Ibexa Platform','ezstring',102,'eng-GB',3,0,'ibexa platform',9), + (0,155,41,0,0,'','ezstring',103,'eng-GB',3,0,'',1), + (0,156,1,NULL,NULL,'
This is the clean installation coming with Ibexa Platform.It''s a bare-bones setup of the Platform, an excellent foundation to build upon if you want to start your project from scratch.
','ezrichtext',104,'eng-GB',3,0,'',9), + (0,156,41,0,1045487555,'\n
\n','ezrichtext',105,'eng-GB',3,0,'',1), + (0,4,49,0,0,'Images','ezstring',142,'eng-GB',3,0,'images',1), + (0,155,49,0,0,'','ezstring',143,'eng-GB',3,0,'',1), + (0,119,49,0,1045487555,'\n
\n','ezrichtext',144,'eng-GB',3,0,'',1), + (0,156,49,0,1045487555,'\n
\n','ezrichtext',145,'eng-GB',3,0,'',1), + (0,4,50,0,0,'Files','ezstring',147,'eng-GB',3,0,'files',1), + (0,155,50,0,0,'','ezstring',148,'eng-GB',3,0,'',1), + (0,119,50,0,1045487555,'\n
\n','ezrichtext',149,'eng-GB',3,0,'',1), + (0,156,50,0,1045487555,'\n
\n','ezrichtext',150,'eng-GB',3,0,'',1), + (0,4,51,0,0,'Multimedia','ezstring',152,'eng-GB',3,0,'multimedia',1), + (0,155,51,0,0,'','ezstring',153,'eng-GB',3,0,'',1), + (0,119,51,0,1045487555,'\n
\n','ezrichtext',154,'eng-GB',3,0,'',1), + (0,156,51,0,1045487555,'\n
\n','ezrichtext',155,'eng-GB',3,0,'',1), + (0,179,10,0,0,'','eztext',177,'eng-GB',3,0,'',2), + (0,179,14,0,0,'','eztext',178,'eng-GB',3,0,'',3), + (0,180,10,0,0,'','ezimage',179,'eng-GB',3,0,'',2), + (0,180,14,0,0,'\n\n','ezimage',180,'eng-GB',3,0,'',3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql new file mode 100644 index 0000000000..fc75852a7c --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0014_insert_ezcontentobject_name.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject_name` (`content_translation`, `content_version`, `contentobject_id`, `language_id`, `name`, `real_translation`) +VALUES ('eng-GB',9,1,2,'Ibexa Platform','eng-GB'), + ('eng-GB',1,4,3,'Users','eng-GB'), + ('eng-GB',2,10,3,'Anonymous User','eng-GB'), + ('eng-GB',1,11,3,'Guest accounts','eng-GB'), + ('eng-GB',1,12,3,'Administrator users','eng-GB'), + ('eng-GB',1,13,3,'Editors','eng-GB'), + ('eng-GB',3,14,3,'Administrator User','eng-GB'), + ('eng-GB',1,41,3,'Media','eng-GB'), + ('eng-GB',1,42,3,'Anonymous users','eng-GB'), + ('eng-GB',1,49,3,'Images','eng-GB'), + ('eng-GB',1,50,3,'Files','eng-GB'), + ('eng-GB',1,51,3,'Multimedia','eng-GB'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql new file mode 100644 index 0000000000..1cfc2b9049 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0015_insert_ezcontentobject_tree.sql @@ -0,0 +1,14 @@ +INSERT INTO `ezcontentobject_tree` (`contentobject_id`, `contentobject_is_published`, `contentobject_version`, `depth`, `is_hidden`, `is_invisible`, `main_node_id`, `modified_subnode`, `node_id`, `parent_node_id`, `path_identification_string`, `path_string`, `priority`, `remote_id`, `sort_field`, `sort_order`) +VALUES (0,1,1,0,0,0,1,1448999778,1,1,'','/1/',0,'629709ba256fe317c3ddcee35453a96a',1,1), + (1,1,9,1,0,0,2,1301073466,2,1,'node_2','/1/2/',0,'f3e90596361e31d496d4026eb624c983',8,1), + (4,1,1,1,0,0,5,1301062024,5,1,'users','/1/5/',0,'3f6d92f8044aed134f32153517850f5a',1,1), + (11,1,1,2,0,0,12,1081860719,12,5,'users/guest_accounts','/1/5/12/',0,'602dcf84765e56b7f999eaafd3821dd3',1,1), + (12,1,1,2,0,0,13,1301062024,13,5,'users/administrator_users','/1/5/13/',0,'769380b7aa94541679167eab817ca893',1,1), + (13,1,1,2,0,0,14,1081860719,14,5,'users/editors','/1/5/14/',0,'f7dda2854fc68f7c8455d9cb14bd04a9',1,1), + (14,1,3,3,0,0,15,1301062024,15,13,'users/administrator_users/administrator_user','/1/5/13/15/',0,'e5161a99f733200b9ed4e80f9c16187b',1,1), + (41,1,1,1,0,0,43,1081860720,43,1,'media','/1/43/',0,'75c715a51699d2d309a924eca6a95145',9,1), + (42,1,1,2,0,0,44,1081860719,44,5,'users/anonymous_users','/1/5/44/',0,'4fdf0072da953bb276c0c7e0141c5c9b',9,1), + (10,1,2,3,0,0,45,1081860719,45,44,'users/anonymous_users/anonymous_user','/1/5/44/45/',0,'2cf8343bee7b482bab82b269d8fecd76',9,1), + (49,1,1,2,0,0,51,1081860720,51,43,'media/images','/1/43/51/',0,'1b26c0454b09bb49dfb1b9190ffd67cb',9,1), + (50,1,1,2,0,0,52,1081860720,52,43,'media/files','/1/43/52/',0,'0b113a208f7890f9ad3c24444ff5988c',9,1), + (51,1,1,2,0,0,53,1081860720,53,43,'media/multimedia','/1/43/53/',0,'4f18b82c75f10aad476cae5adf98c11f',9,1); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql new file mode 100644 index 0000000000..f8ba2fe49d --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0016_insert_ezcontentobject_version.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezcontentobject_version` (`contentobject_id`, `created`, `creator_id`, `id`, `initial_language_id`, `language_mask`, `modified`, `status`, `user_id`, `version`, `workflow_event_pos`) +VALUES (4,0,14,4,2,3,0,1,0,1,1), + (11,1033920737,14,439,2,3,1033920746,1,0,1,0), + (12,1033920760,14,440,2,3,1033920775,1,0,1,0), + (13,1033920786,14,441,2,3,1033920794,1,0,1,0), + (41,1060695450,14,472,2,3,1060695457,1,0,1,0), + (42,1072180278,14,473,2,3,1072180330,1,0,1,0), + (10,1072180337,14,474,2,3,1072180405,1,0,2,0), + (49,1080220181,14,488,2,3,1080220197,1,0,1,0), + (50,1080220211,14,489,2,3,1080220220,1,0,1,0), + (51,1080220225,14,490,2,3,1080220233,1,0,1,0), + (14,1301061783,14,499,2,3,1301062024,1,0,3,0), + (1,1448889045,14,506,2,3,1448889046,1,0,9,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql new file mode 100644 index 0000000000..b69e8a455f --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0017_insert_eznode_assignment.sql @@ -0,0 +1,13 @@ +INSERT INTO `eznode_assignment` (`contentobject_id`, `contentobject_version`, `from_node_id`, `id`, `is_main`, `op_code`, `parent_node`, `parent_remote_id`, `remote_id`, `sort_field`, `sort_order`, `priority`, `is_hidden`) +VALUES (8,2,0,4,1,2,5,'','0',1,1,0,0), + (42,1,0,5,1,2,5,'','0',9,1,0,0), + (10,2,-1,6,1,2,44,'','0',9,1,0,0), + (4,1,0,7,1,2,1,'','0',1,1,0,0), + (12,1,0,8,1,2,5,'','0',1,1,0,0), + (13,1,0,9,1,2,5,'','0',1,1,0,0), + (41,1,0,11,1,2,1,'','0',1,1,0,0), + (11,1,0,12,1,2,5,'','0',1,1,0,0), + (49,1,0,27,1,2,43,'','0',9,1,0,0), + (50,1,0,28,1,2,43,'','0',9,1,0,0), + (51,1,0,29,1,2,43,'','0',9,1,0,0), + (14,3,-1,38,1,2,13,'','0',1,1,0,0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql new file mode 100644 index 0000000000..7e0d289d2b --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0018_insert_ezpolicy.sql @@ -0,0 +1,9 @@ +INSERT INTO `ezpolicy` (`function_name`, `id`, `module_name`, `original_id`, `role_id`) +VALUES ('*',317,'content',0,3), + ('login',319,'user',0,3), + ('read',328,'content',0,1), + ('login',331,'user',0,1), + ('*',332,'*',0,2), + ('read',333,'content',0,4), + ('view_embed',334,'content',0,1), + ('*',340,'url',0,3); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql new file mode 100644 index 0000000000..d1dfc57ee9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0019_insert_ezpolicy_limitation.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezpolicy_limitation` (`id`, `identifier`, `policy_id`) +VALUES (251,'Section',328), + (252,'Section',329), + (253,'SiteAccess',331), + (254,'Class',333), + (255,'Owner',333), + (256,'Class',334); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql new file mode 100644 index 0000000000..26ef009ea8 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0020_insert_ezpolicy_limitation_value.sql @@ -0,0 +1,8 @@ +INSERT INTO `ezpolicy_limitation_value` (`id`, `limitation_id`, `value`) +VALUES (477,251,'1'), + (478,252,'1'), + (479,253,'1766001124'), + (480,254,'4'), + (481,255,'1'), + (482,256,'5'), + (483,256,'12'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql new file mode 100644 index 0000000000..16605e3ee2 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0021_insert_ezrole.sql @@ -0,0 +1,5 @@ +INSERT INTO `ezrole` (`id`, `is_new`, `name`, `value`, `version`) +VALUES (1,0,'Anonymous','',0), + (2,0,'Administrator','0',0), + (3,0,'Editor','',0), + (4,0,'Member','',0); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql new file mode 100644 index 0000000000..a12ae3cbfb --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0022_insert_ezsection.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezsection` (`id`, `identifier`, `locale`, `name`, `navigation_part_identifier`) +VALUES (1,'standard','','Standard','ezcontentnavigationpart'), + (2,'users','','Users','ezusernavigationpart'), + (3,'media','','Media','ezmedianavigationpart'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql new file mode 100644 index 0000000000..82536384d3 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0023_insert_ezsite_data.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezsite_data` (`name`, `value`) +VALUES ('ibexa-release','4.6'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql new file mode 100644 index 0000000000..dbdfab1b74 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0024_insert_ezurlalias.sql @@ -0,0 +1,13 @@ +INSERT INTO `ezurlalias` (`destination_url`, `forward_to_id`, `id`, `is_imported`, `is_internal`, `is_wildcard`, `source_md5`, `source_url`) +VALUES ('content/view/full/2',0,12,1,1,0,'d41d8cd98f00b204e9800998ecf8427e',''), + ('content/view/full/5',0,13,1,1,0,'9bc65c2abec141778ffaa729489f3e87','users'), + ('content/view/full/12',0,15,1,1,0,'02d4e844e3a660857a3f81585995ffe1','users/guest_accounts'), + ('content/view/full/13',0,16,1,1,0,'1b1d79c16700fd6003ea7be233e754ba','users/administrator_users'), + ('content/view/full/14',0,17,1,1,0,'0bb9dd665c96bbc1cf36b79180786dea','users/editors'), + ('content/view/full/15',0,18,1,1,0,'f1305ac5f327a19b451d82719e0c3f5d','users/administrator_users/administrator_user'), + ('content/view/full/43',0,20,1,1,0,'62933a2951ef01f4eafd9bdf4d3cd2f0','media'), + ('content/view/full/44',0,21,1,1,0,'3ae1aac958e1c82013689d917d34967a','users/anonymous_users'), + ('content/view/full/45',0,22,1,1,0,'aad93975f09371695ba08292fd9698db','users/anonymous_users/anonymous_user'), + ('content/view/full/51',0,28,1,1,0,'38985339d4a5aadfc41ab292b4527046','media/images'), + ('content/view/full/52',0,29,1,1,0,'ad5a8c6f6aac3b1b9df267fe22e7aef6','media/files'), + ('content/view/full/53',0,30,1,1,0,'562a0ac498571c6c3529173184a2657c','media/multimedia'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql new file mode 100644 index 0000000000..1a3fce42c5 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0025_insert_ezurlalias_ml.sql @@ -0,0 +1,26 @@ +INSERT INTO `ezurlalias_ml` (`action`, `action_type`, `alias_redirects`, `id`, `is_alias`, `is_original`, `lang_mask`, `link`, `parent`, `text`, `text_md5`) +VALUES ('nop:','nop',1,17,0,0,1,17,0,'media2','50e2736330de124f6edea9b008556fe6'), + ('eznode:43','eznode',1,9,0,1,3,9,0,'Media','62933a2951ef01f4eafd9bdf4d3cd2f0'), + ('nop:','nop',1,3,0,0,1,3,0,'users2','86425c35a33507d479f71ade53a669aa'), + ('eznode:5','eznode',1,2,0,1,3,2,0,'Users','9bc65c2abec141778ffaa729489f3e87'), + ('eznode:2','eznode',1,1,0,1,3,1,0,'','d41d8cd98f00b204e9800998ecf8427e'), + ('eznode:14','eznode',1,6,0,1,3,6,2,'Editors','a147e136bfa717592f2bd70bd4b53b17'), + ('eznode:44','eznode',1,10,0,1,3,10,2,'Anonymous-Users','c2803c3fa1b0b5423237b4e018cae755'), + ('eznode:12','eznode',1,4,0,1,3,4,2,'Guest-accounts','e57843d836e3af8ab611fde9e2139b3a'), + ('eznode:13','eznode',1,5,0,1,3,5,2,'Administrator-users','f89fad7f8a3abc8c09e1deb46a420007'), + ('nop:','nop',1,11,0,0,1,11,3,'anonymous_users2','505e93077a6dde9034ad97a14ab022b1'), + ('eznode:12','eznode',1,26,0,0,1,4,3,'guest_accounts','70bb992820e73638731aa8de79b3329e'), + ('eznode:14','eznode',1,29,0,0,1,6,3,'editors','a147e136bfa717592f2bd70bd4b53b17'), + ('nop:','nop',1,7,0,0,1,7,3,'administrator_users2','a7da338c20bf65f9f789c87296379c2a'), + ('eznode:13','eznode',1,27,0,0,1,5,3,'administrator_users','aeb8609aa933b0899aa012c71139c58c'), + ('eznode:44','eznode',1,30,0,0,1,10,3,'anonymous_users','e9e5ad0c05ee1a43715572e5cc545926'), + ('eznode:15','eznode',1,8,0,1,3,8,5,'Administrator-User','5a9d7b0ec93173ef4fedee023209cb61'), + ('eznode:15','eznode',1,28,0,0,0,8,7,'administrator_user','a3cca2de936df1e2f805710399989971'), + ('eznode:53','eznode',1,20,0,1,3,20,9,'Multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,19,0,1,3,19,9,'Files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,18,0,1,3,18,9,'Images','59b514174bffe4ae402b3d63aad79fe0'), + ('eznode:45','eznode',1,12,0,1,3,12,10,'Anonymous-User','ccb62ebca03a31272430bc414bd5cd5b'), + ('eznode:45','eznode',1,31,0,0,1,12,11,'anonymous_user','c593ec85293ecb0e02d50d4c5c6c20eb'), + ('eznode:53','eznode',1,34,0,0,1,20,17,'multimedia','2e5bc8831f7ae6a29530e7f1bbf2de9c'), + ('eznode:52','eznode',1,33,0,0,1,19,17,'files','45b963397aa40d4a0063e0d85e4fe7a1'), + ('eznode:51','eznode',1,32,0,0,1,18,17,'images','59b514174bffe4ae402b3d63aad79fe0'); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql new file mode 100644 index 0000000000..60ee1309ce --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0026_insert_ezurlalias_ml_incr.sql @@ -0,0 +1,4 @@ +INSERT INTO `ezurlalias_ml_incr` (`id`) +VALUES (1), (2), (3), (4), (5), (6), (7), (8), (9), (10), (11), (12), (13), (14), (15), (16), (17), + (18), (19), (20), (21), (22), (24), (25), (26), (27), (28), (29), (30), (31), (32), (33), + (34), (35), (36), (37); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql new file mode 100644 index 0000000000..151e4f6fa4 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0027_insert_ezuser.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezuser` (`contentobject_id`, `email`, `login`, `password_hash`, `password_hash_type`) +VALUES (10,'anonymous@link.invalid','anonymous','$2y$10$35gOSQs6JK4u4whyERaeUuVeQBi2TUBIZIfP7HEj7sfz.MxvTuOeC',7), + (14,'admin@link.invalid','admin','$2y$10$FDn9NPwzhq85cLLxfD5Wu.L3SL3Z/LNCvhkltJUV0wcJj7ciJg2oy',7); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql new file mode 100644 index 0000000000..5ad1f12f1e --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0028_insert_ezuser_role.sql @@ -0,0 +1,7 @@ +INSERT INTO `ezuser_role` (`contentobject_id`, `id`, `limit_identifier`, `limit_value`, `role_id`) +VALUES (11,28,'','',1), + (42,31,'','',1), + (13,32,'Subtree','/1/2/',3), + (13,33,'Subtree','/1/43/',3), + (12,34,'','',2), + (13,35,'','',4); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql new file mode 100644 index 0000000000..c87f9291dd --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0029_insert_ezuser_setting.sql @@ -0,0 +1,3 @@ +INSERT INTO `ezuser_setting` (`is_enabled`, `max_login`, `user_id`) +VALUES (1,1000,10), + (1,10,14); diff --git a/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql new file mode 100644 index 0000000000..5a44f420f9 --- /dev/null +++ b/src/bundle/RepositoryInstaller/Resources/migrations/sql/sqlite/data/0030_insert_ezpreferences.sql @@ -0,0 +1,2 @@ +INSERT INTO `ezpreferences` (`name`, `user_id`, `value`) +SELECT 'focus_mode', u.contentobject_id, '0' FROM `ezuser` u WHERE u.login = 'admin'; diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPassTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPassTest.php deleted file mode 100644 index 0582363709..0000000000 --- a/tests/bundle/RepositoryInstaller/DependencyInjection/Compiler/InstallerTagPassTest.php +++ /dev/null @@ -1,58 +0,0 @@ -setDefinition( - InstallPlatformCommand::class, - new Definition(InstallPlatformCommand::class, ['$installers' => []]) - ); - $definition = new Definition(); - $definition->addTag( - InstallerTagPass::INSTALLER_TAG, - [ - 'type' => 'installer_type', - ] - ); - - $this->setDefinition('service_id', $definition); - $this->compile(); - - $this->assertContainerBuilderHasServiceDefinitionWithArgument( - InstallPlatformCommand::class, - '$installers', - [ - 'installer_type' => new Reference('service_id'), - ] - ); - } - - protected function registerCompilerPass(ContainerBuilder $container): void - { - $container->addCompilerPass(new InstallerTagPass()); - } -} - -class_alias(InstallerTagPassTest::class, 'EzSystems\PlatformInstallerBundleTests\DependencyInjection\Compiler\InstallerTagPassTest'); diff --git a/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php b/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php index 19ff4e77d1..ef93b0dbf8 100644 --- a/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php +++ b/tests/bundle/RepositoryInstaller/DependencyInjection/IbexaInstallerExtensionTest.php @@ -9,7 +9,6 @@ namespace Ibexa\Tests\Bundle\RepositoryInstaller\DependencyInjection; use Ibexa\Bundle\RepositoryInstaller\Command\InstallPlatformCommand; -use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass; use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\IbexaRepositoryInstallerExtension; use Ibexa\Bundle\RepositoryInstaller\Installer\CoreInstaller; use Ibexa\Bundle\RepositoryInstaller\Installer\DbBasedInstaller; @@ -32,7 +31,7 @@ public function testLoadLoadsTaggedCoreInstaller(): void ); $this->assertContainerBuilderHasServiceDefinitionWithTag( CoreInstaller::class, - InstallerTagPass::INSTALLER_TAG, + 'ibexa.installer', ['type' => 'clean'] ); } diff --git a/tests/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundleTest.php b/tests/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundleTest.php index 323370c693..fec8749159 100644 --- a/tests/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundleTest.php +++ b/tests/bundle/RepositoryInstaller/IbexaRepositoryInstallerBundleTest.php @@ -9,10 +9,8 @@ namespace Ibexa\Tests\Bundle\RepositoryInstaller; use Ibexa\Bundle\DoctrineSchema\DependencyInjection\DoctrineSchemaExtension; -use Ibexa\Bundle\RepositoryInstaller\DependencyInjection\Compiler\InstallerTagPass; use Ibexa\Bundle\RepositoryInstaller\IbexaRepositoryInstallerBundle; use PHPUnit\Framework\TestCase; -use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Exception\RuntimeException; @@ -33,17 +31,10 @@ public function testBuild(): void { $container = new ContainerBuilder(); $container->registerExtension(new DoctrineSchemaExtension()); + $this->bundle->build($container); - // check if InstallerTagPass was added - self::assertNotEmpty( - array_filter( - $container->getCompilerPassConfig()->getPasses(), - static function (CompilerPassInterface $compilerPass) { - return $compilerPass instanceof InstallerTagPass; - } - ) - ); + $this->expectNotToPerformAssertions(); } /**