Skip to content
Snippets Groups Projects
  1. Feb 04, 2020
  2. Jan 09, 2020
  3. Nov 27, 2019
  4. Nov 01, 2019
  5. Oct 07, 2019
  6. Sep 24, 2019
  7. Sep 23, 2019
  8. Sep 18, 2019
  9. Aug 27, 2019
    • Evan Read's avatar
      Removes trailing whitespace to fix linting · 42e8bef3
      Evan Read authored
      42e8bef3
    • Mayra Cabrera's avatar
      Migrations guide: use atomic steps, when possible · 9d5ea420
      Mayra Cabrera authored and Evan Read's avatar Evan Read committed
      Currently, the DB migrations guide says that "you must" use non-blocking
      operations (such as CREATE INDEX CONCURRENTLY), always.
      
      But this does not make sense in cases of empty tables and leads to
      splitting the work to multiple non-atomic
      (with disable_ddl_transaction!) DB migrations.
      
      To follow KISS principle, to have fewer DB migrations steps,
      to have them atomic when it's possible and simplify deployment
      and troubleshooting, the following exceptions were added
      to the doc:
      
      - index creation,
      - index dropping,
      - defining an FK,
      - adding a column with DEFAULT,
      9d5ea420
  10. Aug 07, 2019
  11. Jul 09, 2019
  12. May 23, 2019
  13. Apr 12, 2019
  14. Feb 18, 2019
  15. Jan 08, 2019
  16. Jan 04, 2019
    • Kamil Trzcińśki's avatar
      Add config_options|variables to BuildMetadata · 0103d5be
      Kamil Trzcińśki authored
      These are data columns that store runtime configuration
      of build needed to execute it on runner and within pipeline.
      
      The definition of this data is that once used, and when no longer
      needed (due to retry capability) they can be freely removed.
      
      They use `jsonb` on PostgreSQL, and `text` on MySQL (due to lacking
      support for json datatype on old enough version).
      0103d5be
  17. Dec 12, 2018
  18. Nov 15, 2018
  19. Aug 14, 2018
  20. Aug 08, 2018
  21. Mar 22, 2018
  22. Mar 20, 2018
    • Andreas Brandl's avatar
      Shortcut concurrent index creation/removal if no effect. · 1362d9fe
      Andreas Brandl authored
      Index creation does not have an effect if the index is present already.
      Index removal does not have an affect if the index is not present.
      
      This helps to avoid patterns like this in migrations:
      ```
      if index_exists?(...)
        remove_concurrent_index(...)
      end
      ```
      1362d9fe
  23. Jan 19, 2018
  24. Nov 17, 2017
  25. Aug 04, 2017
  26. Jun 13, 2017
  27. May 02, 2017
  28. Apr 12, 2017
    • Yorick Peterse's avatar
      Prepare for zero downtime migrations · 223d8a3d
      Yorick Peterse authored
      Starting with GitLab 9.1.0 we will no longer allow downtime migrations
      unless absolutely necessary. This commit updates the various developer
      guides and adds code that is necessary to make zero downtime migrations
      less painful.
      Verified
      223d8a3d
  29. Apr 05, 2017
  30. Nov 09, 2016
  31. Oct 02, 2016
  32. Sep 16, 2016
  33. Jul 20, 2016
    • Yorick Peterse's avatar
      Added checks for migration downtime · a8bfe20d
      Yorick Peterse authored
      These new checks can be used to check if migrations require downtime or
      not (as tagged by their authors). In CI this compares the current branch
      with master so migrations added by merge requests are automatically
      verified.
      
      To check the migrations added since a Git reference simply run:
      
          bundle exec rake gitlab:db:downtime_check[GIT_REF]
      Unverified
      a8bfe20d
  34. Jun 23, 2016
  35. Jun 16, 2016
  36. Jun 15, 2016
Loading