Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Service/git
(view source)
Revision as of 14:37, 6 August 2010
320 bytes added
,
14:37, 6 August 2010
no edit summary
Line 57:
Line 57:
update users set email='OLDEMAIL' where login='USER';
update users set email='OLDEMAIL' where login='USER';
−
=== WARNING
===
+
===
Zapping a user account
−
To
zap a user account, make sure you also remove
+
−
its related records from all tables
(
committers
,
+
WARNING
: to
zap a user account, make sure you also remove its related records
−
projects
, repositories, events...)
+
from all tables
, or Gitorious will break in non-obvious ways.
+
+
SELECT id FROM users WHERE login='demian';
+
DELETE FROM
committers
WHERE user_id=666;
+
DELETE FROM events WHERE user_id=666;
+
DELETE FROM comments WHERE user_id=666;
+
DELETE FROM merge_requests WHERE user_id=666;
+
DELETE FROM repositories WHERE user_id=666;
+
DELETE FROM
projects
WHERE user_id=666;
=== Restart gitorious after code/config changes ===
=== Restart gitorious after code/config changes ===
touch tmp/restart.txt
touch tmp/restart.txt
Bernie
Bureaucrats
,
Check users
,
Administrators
1,784
edits