mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
bbe605a47f
Summary: The transformation is pretty direct. I didn't add additional functionality to the IdMap and I did not update the construction algorithm yet. The querying method on IdMap were updated to async and then there are the SQL interaction details. In follow up changes I want to update the construction algorithm and add support for multiple repositories. I am not happy with the names of the columns or naming in general in this code. Open to suggestions. One idea could be matching the client nomenclature as much as possible. Reviewed By: StanislavGlebik Differential Revision: D20929576 fbshipit-source-id: 12104892faa69f37c141e8baf54d5fb24fc5df6b
17 lines
376 B
SQL
17 lines
376 B
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.
|
|
*/
|
|
|
|
/*
|
|
* TODO(sfilip): add repo_id and idmap_version
|
|
*/
|
|
CREATE TABLE segmented_changelog_idmap (
|
|
vertex BIGINT NOT NULL,
|
|
cs_id VARBINARY(32) NOT NULL,
|
|
PRIMARY KEY (vertex),
|
|
UNIQUE (cs_id)
|
|
);
|