Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. drush field-delete deleted_date_N --bundle=content_type
  2.  
  3. function hottopicsnotify_update_7002() {
  4. // Clear cache first?
  5.  
  6. field_delete_field('field_effect');
  7.  
  8. field_purge_batch();
  9. }
  10.  
  11. drush updb
  12.  
  13. public function renameTable($table, $new_name) {
  14. if (!$this->tableExists($table)) {
  15. return FALSE;
  16. // throw new DatabaseSchemaObjectDoesNotExistException(t("Cannot rename @table to @table_new: table @table doesn't exist.", array('@table' => $table, '@table_new' => $new_name)));
  17. }
  18. if ($this->tableExists($new_name)) {
  19. return FALSE;
  20. // throw new DatabaseSchemaObjectExistsException(t("Cannot rename @table to @table_new: table @table_new already exists.", array('@table' => $table, '@table_new' => $new_name)));
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement