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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Jan 12 16:14:36 CET 2013


Revision: 20096
          http://gar.svn.sourceforge.net/gar/?rev=20096&view=rev
Author:   wahwah
Date:     2013-01-12 15:14:36 +0000 (Sat, 12 Jan 2013)
Log Message:
-----------
pkgdb: Fix the order of tables

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-12 14:51:42 UTC (rev 20095)
+++ csw/mgar/gar/v2/lib/python/database.py	2013-01-12 15:14:36 UTC (rev 20096)
@@ -12,21 +12,26 @@
 CONFIG_DB_SCHEMA = "db_schema_version"
 DB_SCHEMA_VERSION = 9L
 TABLES_THAT_NEED_UPDATES = (m.CswFile,)
+
+# 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.CheckpkgOverride,
             m.CswConfig,
             m.Host,
             m.Maintainer,
             m.OsRelease,
             m.Pkginst,
+            m.Srv4FileStatsBlob,
+            m.Srv4FileStats,
+            m.CheckpkgOverride, # needs Srv4FileStats
             m.Srv4DependsOn,
             m.Srv4FileInCatalog,
-            m.Srv4FileStatsBlob,
-            m.Srv4FileStats)
+)
 # Shouldn't this be in common_constants?
 SYSTEM_PKGMAP = "/var/sadm/install/contents"
 CONFIG_MTIME = "mtime"

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