Skip to content
Snippets Groups Projects
  1. Jun 20, 2019
  2. Apr 14, 2019
  3. Nov 13, 2018
  4. Nov 12, 2018
    • Travis Ralston's avatar
      [MAJOR MIGRATION] Initial structure for a concept of "datastores" · c2bc340c
      Travis Ralston authored
      **Caution**: This is a major migration that changes how files are tracked within the database. Although tested to ensure things won't go wrong, there is the possibility of something going haywire. It is recommended to run the following database commands before upgrading:
      
      CREATE TABLE media_backup AS TABLE media;
      CREATE TABLE thumbnails_backup AS TABLE thumbnails;
      
      In the event you need to roll back, run the following:
      DROP TABLE media;
      DROP TABLE thumbnails;
      CREATE TABLE media AS TABLE media_backup;
      CREATE TABLE thumbnails AS TABLE thumbnails_backup;
      DELETE FROM gomigrate WHERE migration_id = 7;
      
      This will cause any files uploaded between upgrading and rolling back to be lost.
      
      NOTE: The migration will take a while and runs on the first access of a file. If you have a lot of files, this could take a while.
      
      -----
      
      Fixes https://github.com/turt2live/matrix-media-repo/issues/106
      Step towards https://github.com/turt2live/matrix-media-repo/issues/47
      c2bc340c
  5. Jan 21, 2018
  6. Jan 20, 2018
  7. Jan 09, 2018
  8. Nov 13, 2017
  9. Nov 11, 2017
Loading