mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
8c7de41d8c
Summary: The fbcode/linttool has been updated to support lua and sql here D19467627, so updating arc rules to cover the new extensions Reviewed By: zertosh Differential Revision: D19534326 fbshipit-source-id: 4e615653acedcdf2da88e7dc4b443ad22af1324f
40 lines
1.2 KiB
SQL
40 lines
1.2 KiB
SQL
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This software may be used and distributed according to the terms of the
|
|
* GNU General Public License version 2.
|
|
*/
|
|
|
|
CREATE TABLE `revisions` (
|
|
`repo` varbinary(64) NOT NULL,
|
|
`path` varbinary(512) NOT NULL,
|
|
`chunk` int(10) unsigned NOT NULL,
|
|
`chunkcount` int(10) unsigned NOT NULL,
|
|
`linkrev` int(10) unsigned NOT NULL,
|
|
`rev` int(10) unsigned NOT NULL,
|
|
`node` binary(40) NOT NULL,
|
|
`entry` binary(64) NOT NULL,
|
|
`data0` varbinary(1) NOT NULL,
|
|
`data1` longblob NOT NULL,
|
|
`createdtime` datetime NOT NULL,
|
|
PRIMARY KEY (`repo`,`path`,`rev`,`chunk`),
|
|
KEY `linkrevs` (`repo`,`linkrev`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
CREATE TABLE `revision_references` (
|
|
`autoid` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
`repo` varbinary(64) NOT NULL,
|
|
`namespace` varbinary(32) NOT NULL,
|
|
`name` varbinary(256) DEFAULT NULL,
|
|
`value` varbinary(40) NOT NULL,
|
|
PRIMARY KEY (`autoid`),
|
|
UNIQUE KEY `bookmarkindex` (`repo`,`namespace`,`name`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
|
|
CREATE TABLE `repo_lock` (
|
|
`repo` varbinary(64) NOT NULL,
|
|
`state` tinyint(4) NOT NULL,
|
|
`reason` varbinary(255) DEFAULT NULL,
|
|
PRIMARY KEY (`repo`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|