Skip to content
Snippets Groups Projects
Commit 9dd46380 authored by Travis Ralston's avatar Travis Ralston
Browse files

Add a note about changing ownership of the resources

parent f403e0de
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,12 @@ a large database (more than about 100k uploaded files), run the following steps
2. If you have no intention of using stats or quotas, you're done (the stats table will be inaccurate). If
you do plan on using either, run `INSERT INTO user_stats SELECT user_id, SUM(size_bytes) FROM media GROUP BY user_id;`
which may take a while.
3. Change the owner of the table and function to your media repo's postgresql user. For example, if your postgres
user is `media`, then run:
```sql
ALTER TABLE user_stats OWNER TO media;
ALTER FUNCTION track_update_user_media() OWNER TO media;
```
### Added
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment