Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

refresh database tables yii 1

public action refreshSchema()
{
// Load all tables of the application in the schema
Yii::app()->db->schema->getTables();
// clear the cache of all loaded tables
Yii::app()->db->schema->refresh();
}
 
PREVIOUS NEXT
Tagged: #refresh #database #tables #yii
ADD COMMENT
Topic
Name
2+6 =