[csw-devel] SF.net SVN: gar:[20228] csw/mgar/gar/v2/lib/python/database.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Mon Jan 28 09:21:02 CET 2013


Revision: 20228
          http://gar.svn.sourceforge.net/gar/?rev=20228&view=rev
Author:   wahwah
Date:     2013-01-28 08:21:01 +0000 (Mon, 28 Jan 2013)
Log Message:
-----------
pkgdb: The right order of creating tables

This has to satisfy internal dependencies between tables. For sqlite it doesn't
matter, but for MySQL it does.

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/database.py

Modified: csw/mgar/gar/v2/lib/python/database.py
===================================================================
--- csw/mgar/gar/v2/lib/python/database.py	2013-01-28 07:19:59 UTC (rev 20227)
+++ csw/mgar/gar/v2/lib/python/database.py	2013-01-28 08:21:01 UTC (rev 20228)
@@ -16,21 +16,21 @@
 # This list of tables is sensitive to the order in which tables are created.
 # After you change the order here, you need to make sure that the tables can
 # still be created.
-TABLES = TABLES_THAT_NEED_UPDATES + (
-            m.Architecture,
-            m.CatalogRelease,
-            m.CatalogReleaseType,
-            m.CheckpkgErrorTag,
-            m.CswConfig,
-            m.Host,
-            m.Maintainer,
-            m.OsRelease,
-            m.Pkginst,
-            m.Srv4FileStatsBlob,
-            m.Srv4FileStats,
-            m.CheckpkgOverride, # needs Srv4FileStats
-            m.Srv4DependsOn,
-            m.Srv4FileInCatalog,
+TABLES = (m.Architecture,
+          m.CatalogReleaseType,
+          m.CatalogRelease,
+          m.CswConfig,
+          m.Host,
+          m.Maintainer,
+          m.OsRelease,
+          m.Pkginst,
+          m.Srv4FileStatsBlob,
+          m.Srv4FileStats,
+          m.CheckpkgErrorTag,
+) + TABLES_THAT_NEED_UPDATES + (
+          m.CheckpkgOverride, # needs Srv4FileStats
+          m.Srv4DependsOn,
+          m.Srv4FileInCatalog,
 )
 # Shouldn't this be in common_constants?
 SYSTEM_PKGMAP = "/var/sadm/install/contents"

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list