Skip to content

Commit

Permalink
Merge pull request #1848 from ezsystems/ezp26482-dfs_schema
Browse files Browse the repository at this point in the history
Fix EZP-26482: add ezdfsfile to MySQL schema.sql
  • Loading branch information
bdunogier authored Jan 16, 2017
2 parents e1833d6 + af88ebf commit b461cc6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
24 changes: 24 additions & 0 deletions data/mysql/dfs_schema.sql
Original file line number Diff line number Diff line change
@@ -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 */;
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b461cc6

Please sign in to comment.