Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P434
After swh phabricator lister deployment: Alter swh-lister's phabricator table
Active
Public
Actions
Authored by
ardumont
on Jun 18 2019, 7:05 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
Lister
Subscribers
None
-- Align table names to singular (phabricator, bitbucket, etc...) ~> same convention as in the main archive for instance
alter table phabricator_repos rename to phabricator_repo;
alter table bitbucket_repos rename to bitbucket_repo;
alter table github_repos rename to github_repo;
-- Add the missing instance column
alter table phabricator_repo add column instance varchar;
-- Update the instance value
update phabricator_repo set instance='swh';
-- Modify schema appropriately
alter table phabricator_repo alter column instance set not null;
Event Timeline
ardumont
created this paste.
Jun 18 2019, 7:05 AM
2019-06-18 07:05:00 (UTC+2)
ardumont
edited the content of this paste.
(Show Details)
Jun 18 2019, 7:14 AM
2019-06-18 07:14:16 (UTC+2)
ardumont
edited the content of this paste.
(Show Details)
ardumont
mentioned this in
D1594: phabricator: model: Reference the forge's instance name in model
.
Jun 18 2019, 7:20 AM
2019-06-18 07:20:49 (UTC+2)
ardumont
mentioned this in
rDLSfc92c79b7ec5: models: Unify tablenames using singular as main archive's convention
.
Jun 18 2019, 10:27 AM
2019-06-18 10:27:02 (UTC+2)
ardumont
mentioned this in
rDLSaf681ac1284e: phabricator: model: Reference the forge's instance name in model
.
ardumont
added a comment.
Jun 18 2019, 10:45 AM
2019-06-18 10:45:27 (UTC+2)
Comment Actions
Migration done.
Log In to Comment