svn: /web/php-rmtools/trunk/include/ Base.php
| From: | Pierre Joye | Date: | Sun, 10 Jan 2010 15:10:15 +0000 |
| Subject: | svn: /web/php-rmtools/trunk/include/ Base.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-6939@lists.php.net to get a copy of this message | ||
pajoye Sun, 10 Jan 2010 15:10:15 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=293349
Log:
- add last_revision, store the last revision for this branch
Changed paths:
U web/php-rmtools/trunk/include/Base.php
Modified: web/php-rmtools/trunk/include/Base.php
===================================================================
--- web/php-rmtools/trunk/include/Base.php 2010-01-10 13:37:57 UTC (rev 293348)
+++ web/php-rmtools/trunk/include/Base.php 2010-01-10 15:10:15 UTC (rev 293349)
@@ -24,9 +24,10 @@
}
function createStorage() {
- if (!sqlite_query($this->db, 'CREATE TABLE release (name VARCHAR(32), release_branch
VARCHAR(32), dev_branch VARCHAR(32), status INTEGER, first_revision INTEGER)')) {
+ if (!sqlite_query($this->db, 'CREATE TABLE release (name VARCHAR(32), release_branch
VARCHAR(32), dev_branch VARCHAR(32), status INTEGER, first_revision INTEGER, last_revision
INTEGER)')) {
throw new \Exception('Cannot initialize TABLE release');
}
+
if (!sqlite_query($this->db, 'CREATE TABLE rm (name VARCHAR(32), release_name
VARCHAR(32))')) {
throw new \Exception('Cannot initialize TABLE release');
}
@@ -88,4 +89,4 @@
}
return sqlite_fetch_array($res, SQLITE_ASSOC);
}
-}
\ No newline at end of file
+}