Make sqlite synced_commit_mapping align with D17526345

Summary: We've improved the MySQL version in review - make the SQLite version match, to avoid nasty test/prod issues

Reviewed By: StanislavGlebik

Differential Revision: D17528682

fbshipit-source-id: 498467210608cce0ec27d014d64a22115355cda2
This commit is contained in:
Simon Farnsworth 2019-09-23 13:38:01 -07:00 committed by Facebook Github Bot
parent daf9b3d79a
commit 632beb5550

View File

@ -1,9 +1,9 @@
CREATE TABLE synced_commit_mapping (
small_repo_id INTEGER NOT NULL,
small_bcs_id BINARY(32) NOT NULL,
large_repo_id INTEGER NOT NULL,
large_bcs_id BINARY(32) NOT NULL,
UNIQUE (small_repo_id, small_bcs_id, large_repo_id),
UNIQUE (small_repo_id, small_bcs_id, large_repo_id, large_bcs_id),
PRIMARY KEY (small_repo_id, small_bcs_id)
CREATE TABLE `synced_commit_mapping` (
`mapping_id` INTEGER PRIMARY KEY,
`small_repo_id` int(11) NOT NULL,
`small_bcs_id` binary(32) NOT NULL,
`large_repo_id` int(11) NOT NULL,
`large_bcs_id` binary(32) NOT NULL,
UNIQUE (`large_repo_id`,`small_repo_id`,`small_bcs_id`),
UNIQUE (`small_repo_id`,`large_repo_id`,`large_bcs_id`)
);