This project is mirrored from https://:*****@gitlab.archlinux.org/archlinux/aurweb.git. Pull mirroring updated .
  1. 24 Sep, 2012 2 commits
  2. 17 Sep, 2012 1 commit
    • canyonknight's avatar
      Migrate all DB code to use PDO · e171f6f3
      canyonknight authored
      
      
      All DB code currently uses the quickly aging mysql_* functions. These
      functions are strongly discouraged and may eventually be deprecated.
      
      Transition all code to utilize the PDO data access abstraction layer. PDO
      allows for consistent query code across multiple databases. This could
      potentially allow for someone to use a database other than MySQL with
      minimal code changes.
      
      All functions and behaviors are reproduced as faithfully as possible with
      PDO equivalents and some changes in code.
      Signed-off-by: default avatarcanyonknight <canyonknight@gmail.com>
      Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
      e171f6f3
  3. 23 Aug, 2012 1 commit
  4. 06 Jul, 2012 1 commit
  5. 24 Mar, 2012 1 commit
  6. 09 Mar, 2012 1 commit
  7. 24 Oct, 2011 1 commit
  8. 22 Aug, 2011 1 commit
  9. 19 Aug, 2011 1 commit
  10. 11 Aug, 2011 2 commits
  11. 25 Jun, 2011 1 commit
  12. 22 Jun, 2011 1 commit
  13. 27 Apr, 2011 1 commit
  14. 13 Apr, 2011 1 commit
  15. 10 Apr, 2011 2 commits
  16. 05 Apr, 2011 1 commit
  17. 03 Apr, 2011 2 commits
    • Dan McGee's avatar
      Remove Dummy Package concept · 7c91c592
      Dan McGee authored
      
      
      Instead, we just store dependencies directly in the PackageDepends
      table. Since we don't use this info anywhere besides the package details
      page, there is little value in precalculating what is in the AUR vs.
      what is not.
      
      An upgrade path is provided via several SQL statements in the UPGRADING
      document. There should be no user-visible change from this, but the DB
      schema gets a bit more sane and we no longer have loads of junk packages
      in our tables that are never shown to the end user. This should also
      help the MySQL query planner in several cases as we no longer have to be
      careful to exclude dummy packages on every query.
      Signed-off-by: default avatarDan McGee <dan@archlinux.org>
      Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
      7c91c592
    • Dan McGee's avatar
      Always set ModifiedTS including new packages · 1f252eba
      Dan McGee authored
      
      
      Set it equal to the SubmittedTS field, which will be our indication the
      package is new when we show the logo on the front page of the AUR.
      
      This results in the ability to remove the use of the unindexable
      GREATEST() function from the AUR code everywhere we had to use it before
      to handle the 0 timestamp case.
      
      Note that there is no race condition here in calling UNIX_TIMESTAMP()
      twice- it always returns the time at the beginning of statment
      execution:
      
          mysql> select unix_timestamp(), sleep(2), unix_timestamp();
          +------------------+----------+------------------+
          | unix_timestamp() | sleep(2) | unix_timestamp() |
          +------------------+----------+------------------+
          |       1300851746 |        0 |       1300851746 |
          +------------------+----------+------------------+
          1 row in set (2.00 sec)
      Signed-off-by: default avatarDan McGee <dan@archlinux.org>
      Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
      1f252eba
  18. 27 Feb, 2011 4 commits
  19. 26 Feb, 2011 1 commit
  20. 15 Feb, 2011 1 commit
  21. 11 Feb, 2011 3 commits
  22. 10 Feb, 2011 1 commit
  23. 09 Feb, 2011 1 commit
  24. 01 Feb, 2011 3 commits
  25. 24 Jan, 2011 1 commit
  26. 19 Jan, 2011 1 commit
  27. 10 Nov, 2010 1 commit
  28. 11 Sep, 2010 1 commit