sapling/tests/pushrebase_replay_schema.sql
Pavel Aslanov 8ed850dc2b fixes recording of: 1. correct repo_id. 2. full ontorev
Summary:
This change fixes two problems in pushrebase recording, that will be used to test mononoke pushrebase:
- record correct `repo_id`, it used to be always 0
- `ontorev` truncation, as we store rev as hex string we need 40 bytes instead of 20

Reviewed By: ikostia

Differential Revision: D9398009

fbshipit-source-id: 91add2d75fbb9acf32b99dc952c467d44c2ccbc9
2018-08-20 06:23:20 -07:00

16 lines
566 B
SQL

CREATE TABLE `pushrebaserecording` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`repo_id` int(10) unsigned NOT NULL,
`ontorev` binary(40) NOT NULL,
`onto` varchar(512) NOT NULL,
`conflicts` LONGTEXT DEFAULT NULL,
`pushrebase_errmsg` varchar(1024) DEFAULT NULL,
`upload_errmsg` varchar(1024) DEFAULT NULL,
`bundlehandle` varchar(1024),
`timestamps` LONGTEXT NOT NULL,
`recorded_manifest_hashes` LONGTEXT NOT NULL,
`real_manifest_hashes` LONGTEXT NOT NULL,
`duration_ms` int(10),
PRIMARY KEY (`id`) )
ENGINE=InnoDB DEFAULT CHARSET=utf8;