provide version info in /pubsites
This commit is contained in:
@@ -1151,6 +1151,7 @@ CREATE TABLE IF NOT EXISTS `site` (
|
||||
`site_dead` smallint NOT NULL DEFAULT '0',
|
||||
`site_type` smallint NOT NULL DEFAULT '0',
|
||||
`site_project` char(255) NOT NULL DEFAULT '',
|
||||
`site_version` varchar(32) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`site_url`),
|
||||
KEY `site_flags` (`site_flags`),
|
||||
KEY `site_update` (`site_update`),
|
||||
|
||||
@@ -1131,6 +1131,7 @@ CREATE TABLE "site" (
|
||||
"site_dead" smallint NOT NULL DEFAULT '0',
|
||||
"site_type" smallint NOT NULL DEFAULT '0',
|
||||
"site_project" text NOT NULL DEFAULT '',
|
||||
"site_version" text NOT NULL DEFAULT '',
|
||||
PRIMARY KEY ("site_url")
|
||||
);
|
||||
create index "site_flags" on site ("site_flags");
|
||||
|
||||
+9
-1
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
define( 'UPDATE_VERSION' , 1182 );
|
||||
define( 'UPDATE_VERSION' , 1183 );
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -2436,3 +2436,11 @@ function update_r1181() {
|
||||
return UPDATE_SUCCESS;
|
||||
}
|
||||
|
||||
function update_r1182() {
|
||||
|
||||
$r1 = q("alter table site add site_version varchar(32) not null default '' ");
|
||||
|
||||
if($r1)
|
||||
return UPDATE_SUCCESS;
|
||||
return UPDATE_FAILED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user