A MESG table was originally in the local database, and a field maid was later added to the table.
Use in an operation
$MESG = D (' MESG ');
Dump ($MESG);
In the model are:
Protected $_map = Array (
' User ' = ' muser ',
' Content ' = ' mcontent ',
' Time ' = ' mtime ',
' Aid ' = ' maid ',
);
This is the result:
["fields:protected"] + = Array (8) {
[0] = = string (3) "Mid"
[1] = = string (4) "Muid"
[2] = = string (5) "Muser"
[3] = = string (8) "Mcontent"
[4] = = string (5) "Mtime"
[5] = = string (4) "Maid"//This
["_autoinc"] = = BOOL (true)
["_pk"] = + string (3) "Mid"
}
There are maid fields in the local area.
But when it was uploaded to Sinaapp, it was the same operation, but the result was:
["Fields":p rotected] = = Array (7) {
[0] = = string (3) "Mid"
[1] = = string (4) "Muid"
[2] = = string (5) "Muser"
[3] = = string (8) "Mcontent"
[4] = = string (5) "Mtime"
["_autoinc"] = = BOOL (true)
["_pk"] = + string (3) "Mid"
}
The following is normal on both the local and the SAE:
["_map":p rotected] = = Array (4) {
["user"] = + string (5) "Muser"
["Content"] + string (8) "Mcontent"
["Time"] + = string (5) "Mtime"
[Aid] = + string (4) "Maid"
}
Originally the SAE above table is also not that field, and later added the field is invalid, I have all the table re-upload also invalid.
Runtime deleted many times is also invalid, do not know what caused the cause?
Reply to discussion (solution)
Verify that the table structure on the SAE end has been successfully modified
Re-submit the entire project after it has been successfully debugged locally in SAE mode
Verify that the table structure on the SAE end has been successfully modified
Re-submit the entire project after it has been successfully debugged locally in SAE mode
The SAE table structure has been modified well.
What do you mean, "to be locally tested successfully in SAE mode"?
Verify that the table structure on the SAE end has been successfully modified
Re-submit the entire project after it has been successfully debugged locally in SAE mode
I am now new to the second version, and then the first version of the copy of all the past, and then just fine!!
Thank you!
But I want to know what causes it?
Didn't you use the SAE method to debug your machine?
Regular Project Entry file
Require './thinkphp/thinkphp.php ';
Project entry file for SAE
Require './thinkphp/extend/engine/sae.php ';
Verify that the table structure on the SAE end has been successfully modified
Re-submit the entire project after it has been successfully debugged locally in SAE mode
And I want to ask, how do I resubmit the first version as a whole if I don't get a second version?
I don't know how to resubmit it.
Didn't you use the SAE method to debug your machine?
Regular Project Entry file
Require './thinkphp/thinkphp.php ';
Project entry file for SAE
Require './thinkphp/extend/engine/sae.php ';
Well, this is clear.
And I want to ask, how do I resubmit the first version as a whole if I don't get a second version?
I don't know how to resubmit it. Aren't you using SVN software?
Right-click on the project directory to submit
Reference to the 5 floor of the reply:
And I want to ask, how do I resubmit the first version as a whole if I don't get a second version?
I don't know how to resubmit it.
Aren't you using SVN software?
Right-click on the project directory to submit
After that, there is no effect, or the same problem.
But I solved the problem of rebuilding a version.
I don't know why.
I have also encountered this problem. Online search, said to be kvdb cache problem. Then I disable KVDB and turn it back on, but it still happens. After a toss to know the disabled kvdb and did not empty the cache, although disabled when prompted, but at least I was not emptied, the reason is not to tangle.
You can use the following code to view the cache contents of your KVDB
[Code] $kv = new SAEKV ();
$ret = $kv->init ();
$ret = $kv->pkrget (' ', 100);
Dump ($ret);
[/code]
If you disable and re-open Kvdb, running the above code still outputs the cached content, which means that the KVDB cache is still there.
Copy the following code to resolve all issues after execution.
[Code] $kv = new SAEKV (); Create a Saekv object
$ret = $kv->init (); Initialization
$ret = $kv->pkrget (' ', 100); Get cached content (the Help document indicates an upper limit of 100 items)
$this->show ('
Current KVDB Cache Content
');
Dump ($ret);
Traverse and Delete
foreach ($ret as $key = = $value) {
$ret = $kv->delete ($key);
}
$this->show (");
$this->show ('
Empty the contents of the KVDB cache
');
$ret = $kv->pkrget (' ', 100);
Dump ($ret);
if (! $ret) {
$this->show (");
$this->show (' Kvdb empty successfully ');
};
[/code]