We have a drupal site written in drupal 6. We know we will have to rewrite it for drupal 7 (mostly)
But the big part is migrating the data. CCK migrate was only able to migrate about 90% of the fields.
I am looking for a clean way to migrate the drupal 6 data to drupal 7.
We used content_multigroup as a module which is basically like a field collection...How would that be migrated?
I am looking for some general strategies...I am thinking of bootstrapping drupal 7 and just write queries against the drupal 6 database and save nodes.
The Migrate module has evolved a lot since this question was asked. Also the Migrate D2D module is a great starting point for a Drupal 6 to Drupal 7 migration.
Check the documentation and you should get a pretty good idea of how to go about it.
Admittedly, the Migrate module seems to have a steep learning curve but using the Migrate D2D Examples you should get up to speed quickly enough.
Upgrade Drupal6 to Drupal7
Make a full backup of all files, directories, and your database(s)
*Notes:
It is wise to try an update or upgrade on a test copy of your site before applying it to your live site. Even minor updates can cause your site's behavior to change.
Step 1:
Make note of non-core drupal modules(no need drupal core modules) and search if that all modules are available in drupal 7. If the modules are not available, then search “is there any alternate module for drupal 7”. Make sure of it. (*step 1 is important)
Step 2:
Disable all non-core module.
Drush: drush pm-disable `drush pm-list --no-core --type=module –pipe`
Step 3:
Change the default theme as “Garland”.
Drush: drush vset theme_default garland, drush vset admin_theme garland
Step 4:
Update the drupal6.
Drush: drush up drupal
Step 5:
Dump the DataBase.
Drush: drush sql-dump > /path-to-dump/my-sql-dump-file-name.sql
Terminal: mysqldump -u [username] -p [database name] > [database name].sql
Step 6:
Download the latest Drupal7.
Drush: drush dl drupal --select`option to select the version`
Step 7:
Copy “files” folder from old instance(Drupal6) to new instance(Drupal7) and change the folder permissions.
Step 8:
Import the dumped DB to new instance.
Drush: (drush sql-drop, drush sql-cli < /path-of-dump/my-sql-dump-file-name.sql)
Terminal: mysql -u [username] -p newdatabase < [database name].sql
Step 9:
Go to Drupal Root > sites > default > settings.php and change into $update_free_access to TRUE in the settings file and then run update.php.
Step 10:
Download all the contributed modules : include `views and views related modules`.
Step 11:
Must download Content Construction Kit (CCK) module. Enable the CCK, Content Migrate modules.
Drush: drush dl cck, drush en cck
Go to “Admin-Structure > Migrate fields”.
Step 12:
In that Migrate fields,
After enable click “Migrate fields” in “Available fields” the fields are come under the “Converted Fields”. Once again run “update.php”.
*Refer this: https://drupal.org/update/themes/6/7
Have you looked at http://drupal.org/project/feeds (which, because of its name, often flies under the radar for its very good use as a data migration tool) ?
What kind of fields are you dealing with?
If that fails, and since you are looking for general strategies, I'll say the following: I would encourage you to use the API, rather than direct queries, as much as possible.
From my own experience, in choosing between the two options:
a) having a script run under D6 and push via SQL to the D7 DB
or
b) having a script run under D7 and pull via SQL to the D6 DB
I would choose b) to make sure that node_save ultimately gets to do all it's work.
Related
I'm trying to vusb-analyzer.
It requires *.mon log file.
How can I make usbmon log file (*.mon)?
https://www.kernel.org/doc/Documentation/usb/usbmon.txt
The document you linked in your question is actually the answer, please see the sections 1-3.
In section 3, it says:
# cat /sys/kernel/debug/usb/usbmon/0u > /tmp/1.mon.out
This will create a text file 1.mon.out. Its structure is also described in the same document.
Now, how do I know that this is the file to be opened by vusb-analyzer? From what I see, the website of this project doesn't make it clear what the *.mon file is.
However, you can see it in the source code:
https://github.com/scanlime/vusb-analyzer/blob/master/VUsbTools/Log.py#L498
It clearly states, that the program uses the syntax described in the document that you already know:
https://www.kernel.org/doc/Documentation/usb/usbmon.txt
The name of your file doesn't really matter, but if you want it to end with ".mon", you could simply use:
# cat /sys/kernel/debug/usb/usbmon/0u > ~/somefile.mon
Two warnings:
The line with cat I posted here is just an example and in order to use it, you will need to follow the steps in the document (it won't work without enabling usbmon first)
vusb-analyzer hasn't been updated for years and I wasn't able to run it on my machine. Its website mentions Ubuntu 8.10 so I wouldn't be surprised if others had problems running it, too. (For example, in order to reproduce your problem, provide more help).
Is There any Options to Clone a Word / Excel / Presentation Based on document version number
for Ex:
version - 4
version - 3
version - 2
version - 1
Here I need to clone Version 4 In Onlyoffice Document Integration Server
and without any mismatch of editor contents
here I uploaded the image in that 7 version are there, I need to clone a 4'th version (which means version 4,3,2,1 and I don't want 5,6,7) it's not like rollback, original document should not get change while cloning.
Please describe the case more detailed, we need more information about the whole process, i.e. are you going to just copy the file or start a new conversion process?
Could you please specify if the versioning already works in your environment.
If yes, how is it organized.
I'm trying to test the Azure Data Warehouse. I successfully created and connected to the database, but I've run into a snag as I attempt to load the tables. I'm trying to execute the following instructions:
To install AdventureWorksSQLDW2012:
-----------------------------------
4. Extract files from AdventureWorksSQLDW2012.zip file into a directory.
5. Edit aw_create.bat setting the following variables:
a. server=<servername> from step 1. e.g. mylogicalserver.database.windows.net
b. user=<username> from step 1 or another user with proper permissions
c. password=<passwordname> for user in step 5b
d. database=<database> created in step 1
e. schema=<schema> this schema will be created if it does not yet exist
6. Run aw_create.bat from a cmd prompt, running from the directory where the files were unzipped to.
This script will...
a. Drop any Adventure Works tables or views that already exist in the schema
b. Create the Adventure Works tables and views in the schema specified
c. Load each table using bcp
d. Validate the row counts for each table
e. Collect statistics on every column for each table
I completed the prerequisites of installing bcp and sqlcmd and used the -? command to confirm the installations.
Unfortunately, when I try to complete step 6 above I get the following error:
REM AdventureWorksSQLDW2012 sample database version 3.0 for DW Service Tue 06/27/2017 20:31:01.99 Bcp must be installed.
Has anyone else come across this error or can anyone suggest a potential solution.
UPDATE: I've also copied the path where BCP is located to my path environment variables. Still no luck.
The aw_create.bat contains a line where you need to provide the path of the bcp program. Once provided ans save the script worked like a charm.
i am still learning ruby on rails.
My first site is running but now i have this problem:
I run rails generate scaffold staat name:string hauptstadt:string einwohner:integer sprache:string
How is the best way for add a param like "test:string" for staat?
Assuming you want to add another column to your database, just run:
rails g migration add_test_to_staats test:string
This will create a migration file under db/migrate
Open it up to make sure it's what you want.
The run bundle exec rake db:migrate
I would also recommend you go through docs that explains this further, here's a link:
http://guides.rubyonrails.org/active_record_migrations.html
I have installed RedHawk 1.10.0 using Ubuntu 14.0.4LTS as described in appendix F of the RedHawk documentation. I also installed standalone IDE from SourceForge
again, as specified in appendix F, chapter 2.5. The IDE comes up looking ok, but here are the problems:
The components list is empty (there are supposed to be a set of pre-defined components). The directory is empty as well on the file system.
When attempting to generate C++ component, I get:
"Exception running "/bin/redhawk-codegen" /bin/redhawk-codegen - template=redhawk.codegen.jinja.cpp.component.pull --checkSupport
In detail, it said: bin/redhawk-codegen":error=2 no such file or directory. The /bin/redhawk-codegen is there under OSSIEHOME. The "pull" template is under: /usr/local/lib/python2.7/dist-packages/redhawk/codegen/jinja/cpp/component.
If I attempt to start Domain Manager I get an error "no domain configuration available".
So for all these problems it is obvious that I need to get a better picture of the expected file layout of all IDE and core RedHawk components. This is not clear from the documentation. Is there a starting point where I can begin debugging "where to find things"?
Regarding your first issue:
When installing for CentOS using the RPMs, a number of components, and devices are pre-packaged into the yum repository. When installing from source, as one must do for Ubuntu in 1.10, the pieces of Redhawk are modular and are installed individually.
The directions from Appendix F walk the user through installing each of the parts that make up the framework. The core, a GPP, bulkio, bustio, and the code generator. This does not include any components or devices (other than the GPP). To install these, you'll need to clone them from their respective git repositories and build and install from source either from the command line, or through the REDHAWK IDE. Building and installing the components from the command line follows the same pattern as the framework, there is a reconf script, which creates the configure script which creates the makefile script. eg. ./reconf; ./configure; make; sudo make install
Regarding your second issue:
These symptoms seem to point to the OSSIEHOME and SDRROOT variables not being set. Make sure that the OSSIEHOME and SDRROOT variables are set in the terminal using "echo $SDRROOT" and "echo $OSSIEHOME" prior to running the IDE. Keep in mind that the environments are unique to each session so, for example, having them set in one bash terminal does not guarantee they are set when launching the IDE from a desktop shortcut. Confirm they are set in your terminal, then launch the IDE from the same terminal.
Regarding your last issue:
This is likely also caused by your second issue. However, if it is not resolved following the above steps, take a look within $SDRROOT/dom/domain There should be two files. One DomainManager.dmd.xml.template and one DomainManager.dmd.xml. If all you have is the template then you need to create the DomainManager.dmd.xml file by copying the template. Then edit it and fill in the id and name fields. The default name is generally REDHAWK_DEV and the id should be a UUID.