Bluewall,<div><br></div><div>The below example of what the migration table should look like is the case only if the robust and region's share the same DB. </div><div><br></div><div>Frank<br><br><div class="gmail_quote">
On Mon, Jan 23, 2012 at 7:10 PM, BlueWall <span dir="ltr"><<a href="mailto:jamesh@bluewallgroup.com">jamesh@bluewallgroup.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As some are aware, development to add working telehubs to OpenSim has been progressing the past couple of days. In the beginning, working out the packet dialog with the viewer, several bits of data were needed to send for the telehub info. These were saved in the database and there was a migration to add the fields and an additional table to the database to save these. As work progressed, and more eyes were added to the effort, it was apparent that we needed to refresh the values each time they were used and that saving them was pointless. So, we are modifying the database to only save what is needed. Here is the rub - I was not aware that by policy we do not do backwards migrations for a couple of reasons. So, these previous migrations will need to be handled by hand. It is just a matter of logging into the console of your database and pasting the script that follows.<br>
<br>
This affects MySQL only! Works has not been extended to other database engines at this time.<br>
<br>
<br>
revisions affected:<br>
start: 32d58d6e3e9a0ea1bfa808567d0f64<u></u>c0652f8a85<br>
end: c36c916342460751d25350b66ffbd7<u></u>eb0a401c2b<br>
<br>
<br>
Script ...<br>
<br>
BEGIN;<br>
alter table regionsettings drop column TelehubName;<br>
alter table regionsettings drop column TelehubEnabled;<br>
alter table regionsettings drop column TelehubPosX;<br>
alter table regionsettings drop column TelehubPosY;<br>
alter table regionsettings drop column TelehubPosZ;<br>
alter table regionsettings drop column TelehubRotX;<br>
alter table regionsettings drop column TelehubRotY;<br>
alter table regionsettings drop column TelehubRotZ;<br>
alter table regionsettings drop column TelehubRotW;<br>
<br>
alter table spawn_points change column PointX Yaw float NOT NULL;<br>
alter table spawn_points change column PointY Pitch float NOT NULL;<br>
alter table spawn_points change column PointZ Distance float NOT NULL;<br>
COMMIT;<br>
<br>
your migrations table (of your region store) should look like ...<br>
<br>
+----------------+---------+<br>
| name | version |<br>
+----------------+---------+<br>
| migrations | 1 |<br>
| UserStore | 7 |<br>
| GridStore | 2 |<br>
| LogStore | 1 |<br>
| InventoryStore | 4 |<br>
| AssetStore | 6 |<br>
| RegionStore | 39 |<br>
+----------------+---------+<br>
<br>
<br>
That should be all that is needed to get things on track for future releases. And, as always you can get additional assistance here or in IRC @ #opensim or for development questions #opensim-dev.<br>
<br>
<br>
Thanks for using OpenSimulator!<span class="HOEnZb"><font color="#888888"><br>
BlueWall<br>
______________________________<u></u>_________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/<u></u>mailman/listinfo/opensim-dev</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><font color="#000099"><b><span style="color:rgb(17,170,221);font-family:Times;font-weight:normal;font-size:medium">Descartes walks into a bar, and the bartender asks "Would you like a beer?" Descartes replies "I think not" and POOF! he vanishes...</span></b></font><br>
</div>