Forum LAMS for Tech-Heads - General Forum: Migrating to moodle 2.0 and LAMS 2.3.5


 
You may request notification for Migrating to moodle 2.0 and LAMS 2.3.5.
Search: 

1: Migrating to moodle 2.0 and LAMS 2.3.5
By: Amy H
07/01/11 12:27 AM
[ Reply | Forward ]
Hi,
We are trying to migrate from Moodle 1.9.x and LAMS 2.3.4 to Moodle 2.0 and Lams 2.3.5.

Whilst Moodle successfully migrates, a fresh installation of LAMS 2.3 then an update to LAMS 2.3.4 on the new server just doesn't work.

I have managed to install LAMS 2.3.5 (the latest release) on the server, however I don't have any way to migrate our old data over to this new installation.

Any help would be greatly appreciated.
Thanks

Posted by Amy H

2: Re: Migrating to moodle 2.0 and LAMS 2.3.5
In response to 1 07/05/11 09:07 AM
[ Reply | Forward ]
Hi Amy,

Unfortunately we don't have an upgrade path for this. The new module you installed in Moodle 2 is a complete new re-write so it won't import your old stuff.

Also, the old LAMS module (for Moodle 1.8.x+) won't be able to be installed in Moodle 2.

So as of now you are better of creating new sequences in Moodle 2 again.

I haven't looked into this carefully, but there might be a chance to move the lessons manually on the database. But I'm really not sure.

We've been doing a lot of client work lately, so I haven't had much chance to look into this. As soon as some time, I'll look into upgrade options.

Thanks,

ernie

Posted by Ernie Ghiglione

3: Re: Migrating to moodle 2.0 and LAMS 2.3.5
In response to 1 07/05/11 09:18 AM
[ Reply | Forward ]
Hi Amy, 

If you have a look at the data model in Moodle 1.x:

mysql> desc mdl_lamstwo_lesson;
+--------------+---------------------+------+-----+---------+----------------+
| Field        | Type                | Null | Key | Default | Extra          |
+--------------+---------------------+------+-----+---------+----------------+
| id           | bigint(10) unsigned | NO   | PRI | NULL    | auto_increment | 
| course       | bigint(10) unsigned | NO   | MUL | 0       |                | 
| lamstwo      | bigint(10) unsigned | NO   |     | 0       |                | 
| name         | varchar(255)        | NO   |     |         |                | 
| intro        | text                | NO   |     |         |                | 
| groupid      | bigint(20)          | YES  |     | 0       |                | 
| sequence_id  | bigint(20) unsigned | YES  |     | 0       |                | 
| lesson_id    | bigint(20) unsigned | YES  |     | 0       |                | 
| timemodified | bigint(10) unsigned | NO   |     | 0       |                | 
+--------------+---------------------+------+-----+---------+----------------+
9 rows in set (0.00 sec)

and then in Moodle2:

+------------------+----------------------+------+-----+---------+----------------+
| Field            | Type                 | Null | Key | Default | Extra          |
+------------------+----------------------+------+-----+---------+----------------+
| id               | bigint(10) unsigned  | NO   | PRI | NULL    | auto_increment | 
| course           | bigint(10) unsigned  | NO   | MUL | 0       |                | 
| name             | varchar(255)         | NO   |     |         |                | 
| intro            | text                 | NO   |     |         |                | 
| introformat      | smallint(4) unsigned | NO   |     | 0       |                | 
| groupid          | bigint(20)           | YES  |     | 0       |                | 
| grade            | smallint(3)          | YES  |     | 0       |                | 
| sequence_id      | bigint(20) unsigned  | YES  |     | 0       |                | 
| lesson_id        | bigint(20) unsigned  | YES  |     | 0       |                | 
| timemodified     | bigint(10) unsigned  | NO   |     | 0       |                | 
| completionfinish | tinyint(1)           | NO   |     | 0       |                | 
| displaydesign    | tinyint(1)           | NO   |     | 0       |                | 
+------------------+----------------------+------+-----+---------+----------------+
12 rows in set (0.00 sec)

I think you could easily create a script that moves the data from one table to do the upgrade. 

Please email me if you need further help. 

Thanks,

Ernie

Posted by Ernie Ghiglione

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum