dbstructure: Set the version when updating manually
This commit is contained in:
parent
dc6cce4080
commit
a156d59e2a
|
@ -1071,6 +1071,7 @@ function db_definition() {
|
||||||
"indexes" => array(
|
"indexes" => array(
|
||||||
"PRIMARY" => array("id"),
|
"PRIMARY" => array("id"),
|
||||||
"uid" => array("uid"),
|
"uid" => array("uid"),
|
||||||
|
"uid_profile" => array("uid", "profile"),
|
||||||
"resource-id" => array("resource-id"),
|
"resource-id" => array("resource-id"),
|
||||||
"guid" => array("guid"),
|
"guid" => array("guid"),
|
||||||
)
|
)
|
||||||
|
@ -1453,6 +1454,7 @@ function dbstructure_run(&$argv, &$argc) {
|
||||||
switch ($argv[1]) {
|
switch ($argv[1]) {
|
||||||
case "update":
|
case "update":
|
||||||
update_structure(true, true);
|
update_structure(true, true);
|
||||||
|
set_config('system','build',DB_UPDATE_VERSION);
|
||||||
return;
|
return;
|
||||||
case "dumpsql":
|
case "dumpsql":
|
||||||
print_structure(db_definition());
|
print_structure(db_definition());
|
||||||
|
|
Loading…
Reference in a new issue