1. 02 Apr, 2019 2 commits
  2. 01 Apr, 2019 9 commits
  3. 29 Mar, 2019 1 commit
  4. 28 Mar, 2019 1 commit
  5. 27 Mar, 2019 5 commits
  6. 26 Mar, 2019 4 commits
  7. 25 Mar, 2019 1 commit
    • Jérome Perrin's avatar
      Remove old slapproxy tables when migrating to new version · c0912336
      Jérome Perrin authored
      Some tools are using directly slapproxy sqlite database and they stopped working when table number was increased in !76 .
      
      We made a quick improvement to the tools so that they can autodetect the current table names instead of hardcoding ( slapos@b8c895cd ) but this failed, because slapproxy remove did not remove the old tables after migration. This branch is about removing the table, to quickly repair these tools.
      
      The long term plan is (hopefully) to improve these tools so that they don't use the private tables like this.
      
      /reviewed-on !105
      c0912336
  8. 22 Mar, 2019 3 commits
    • Jérome Perrin's avatar
      slapproxy: update database version to 13 · d0ce721b
      Jérome Perrin authored
      Because we want to trigger an upgrade that will remove old tables.
      
      Note that re-dumping database_dump_version_current fixed the column
      order in software table - the dump was incorrect (this also change
      output of `proxy show` for this test)
      d0ce721b
    • Jérome Perrin's avatar
      test_slapproxy: Review test for migrations · 18c814a1
      Jérome Perrin authored
      Create a test for each previous versions to current version (starting
      from version 10, earlier versions are not really supported).
      
      Procedure to add test for new version can be:
       * update table structure and increase version in slapos/proxy/schema.sql
       * use generate_dump.sh script to generate
         slapos/tests/test_slapproxy/database_dump_version_$NEW_VERSION.sql
         from slapos/tests/test_slapproxy/database_dump_version_$PREVIOUS_VERSION.sql
         (with computer_id "computer")
       * add TestMigrateVersion$(NEW_VERSION)ToLatest in
         slapos/tests/test_slapproxy/__init__.py
       * use generate_dump.sh script to update in-place
         slapos/tests/test_slapproxy/database_dump_version_current.sql
         (with computer_id "slaprunner")
      18c814a1
    • Jérome Perrin's avatar
      slapproxy: remove old tables on migration · 2f83e1e7
      Jérome Perrin authored
      Instead of keeping old tables which cause confusion for humans and tools
      directly operating on the database, remove old tables and create a
      separate backup file.
      2f83e1e7
  9. 21 Mar, 2019 1 commit
  10. 19 Mar, 2019 12 commits
  11. 18 Mar, 2019 1 commit