This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (typeof Cc == "undefined") { Cc = Components.classes; } | |
| if (typeof Cu == "undefined") { Cu = Components.utils; } | |
| if (typeof Ci == "undefined") { Ci = Components.interfaces; } | |
| const nsX509CertDB = "@mozilla.org/security/x509certdb;1"; | |
| const nsIX509Cert = Ci.nsIX509Cert; | |
| const nsIX509CertDB = Ci.nsIX509CertDB; | |
| const certdb = Cc[nsX509CertDB].getService(nsIX509CertDB); | |
| let certstring = `-----BEGIN CERTIFICATE----- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Enable maintanance mode | |
| drush state-set system.maintenance_mode 1 | |
| # Backup file field data | |
| drush sql-query "CREATE TABLE media__field_file_bak AS SELECT * FROM media__field_file;" | |
| drush sql-query "CREATE TABLE media_revision__field_file_bak AS SELECT * FROM media_revision__field_file;" | |
| # Truncate file field tables (need to change storage settings) | |
| drush sql-query "TRUNCATE media__field_file;" | |
| drush sql-query "TRUNCATE media_revision__field_file;" |