diff --git a/data/mysql/dfs_schema.sql b/data/mysql/dfs_schema.sql new file mode 100644 index 00000000000..4dab4f3ecb4 --- /dev/null +++ b/data/mysql/dfs_schema.sql @@ -0,0 +1,24 @@ +-- +-- Table structure for table `ezdfsfile` +-- + +DROP TABLE IF EXISTS `ezdfsfile`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE ezdfsfile ( + `name` text NOT NULL, + `name_trunk` text NOT NULL, + `name_hash` varchar(34) NOT NULL DEFAULT '', + `datatype` varchar(255) NOT NULL DEFAULT 'application/octet-stream', + `scope` varchar(25) NOT NULL DEFAULT '', + `size` bigint(20) unsigned NOT NULL DEFAULT '0', + `mtime` int(11) NOT NULL DEFAULT '0', + `expired` tinyint(1) NOT NULL DEFAULT '0', + `status` tinyint(1) NOT NULL DEFAULT '0', + PRIMARY KEY (`name_hash`), + KEY `ezdfsfile_name` (`name`(250)), + KEY `ezdfsfile_name_trunk` (`name_trunk`(250)), + KEY `ezdfsfile_mtime` (`mtime`), + KEY `ezdfsfile_expired_name` (`expired`,`name`(250)) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; diff --git a/eZ/Bundle/PlatformInstallerBundle/src/Installer/CleanInstaller.php b/eZ/Bundle/PlatformInstallerBundle/src/Installer/CleanInstaller.php index 3939913e084..74d7908d87c 100644 --- a/eZ/Bundle/PlatformInstallerBundle/src/Installer/CleanInstaller.php +++ b/eZ/Bundle/PlatformInstallerBundle/src/Installer/CleanInstaller.php @@ -16,9 +16,8 @@ public function createConfiguration() public function importSchema() { - $this->runQueriesFromFile( - 'vendor/ezsystems/ezpublish-kernel/data/mysql/schema.sql' - ); + $this->runQueriesFromFile('vendor/ezsystems/ezpublish-kernel/data/mysql/schema.sql'); + $this->runQueriesFromFile('vendor/ezsystems/ezpublish-kernel/data/mysql/dfs_schema.sql'); } public function importData()