Author Topic: How to upgrade from SOBI1 to SOBI2  (Read 21819 times)

0 Members and 3 Guests are viewing this topic.

Offline aquadust

Re:How to upgrade from 1.1.0 to 2.1
« Reply #10 on: 21. October 2006, 08:49:33 »
I have written an SQL script, but you need to make sure you test this in your development region first.

Just follow the instructions and should be O.K

I don t seem to be able to attach the script so here it is . do in on your own risk.

Assumptions.
1- Immigaes don t get migrated
2- Single layer of categories


Pre Requisites:
1 - First make sure you replace the "TablePREFIX" with the correct one for your site.
2 - Change 99 to the administratorID lookup value in TablePREFIX_users table
3 - follow instructions step by step

First make sure you replace the "TablePREFIX" with the correct one for your site.

1 - Edit properties on table TablePREFIX_sobi2_categories, TURN OFF AUTO INCREMENT ON catid
2 - Run the following SQL:
Code: [Select]
insert  into `TablePREFIX_sobi2_categories`
(`catid`,`name`, `image`,`image_position`,`description`,`introtext`,`published`,`checked_out`,`checked_out_time`,`ordering`,`access`,`count`,`params`,`icon`)
select  `id`,`name`,`image`,`image_position`,`description`,`description`,`published`,`checked_out`,`checked_out_time`,`ordering`,`access`,`count`,`params`,
FROM `TablePREFIX_categories` where `section` = "com_sobi"

Code: [Select]
insert  into `DBNAME_sobi2_cats_relations` (`catid`,`parentid`)
select  `id`,1 FROM `TablePREFIX_categories` where `section` = "com_sobi"

3 - Edit properties on table TablePREFIX_sobi2_categories , TURN ON AUTO INCREMENT ON catid
4 - Run the following SQL:

Code: [Select]
ALTER TABLE `TablePREFIX_sobi2_categories` Auto_increment=select (max(`catid`)+1) from `TablePREFIX_sobi2_categories`;
5 - Edit properties on table TablePREFIX_sobi2_item, TURN OFF AUTO INCREMENT itemid
6 - Run the following SQL: (Change 99 to the administratorID in TablePREFIX_users table)
   
Code: [Select]
insert into `TablePREFIX_sobi2_item`
(`itemid`,`title`,`hits`,`visits`,`published`,`checked_out`,`checked_out_time`,`ordering`,`owner`,`ip`,`metakey`,`metadesc`)
select `id`,`name`,`hits`,`visits`,`published`,`checked_out`,`checked_out_time`,`ordering`,99,"127.0.0.1",`description`,`description` from `TablePREFIX_sobi`;

Code: [Select]
insert into `TablePREFIX_sobi2_fields_data` (`fieldid`,`data_txt`,`data_bool`,`itemid`,`expiration`)
(select 1,`address`,"",`id`,"" from `TablePREFIX_sobi`);
insert into `TablePREFIX_sobi2_fields_data` (`fieldid`,`data_txt`,`data_bool`,`itemid`,`expiration`)
(select 2,`postcode`,"",`id`,"" from `TablePREFIX_sobi`);
insert into `TablePREFIX_sobi2_fields_data` (`fieldid`,`data_txt`,`data_bool`,`itemid`,`expiration`)
(select 3,`city`,"",`id`,"" from `TablePREFIX_sobi`);
insert into `TablePREFIX_sobi2_fields_data` (`fieldid`,`data_txt`,`data_bool`,`itemid`,`expiration`)
(select 4,`county`,"",`id`,"" from `TablePREFIX_sobi`);
insert into `TablePREFIX_sobi2_fields_data` (`fieldid`,`data_txt`,`data_bool`,`itemid`,`expiration`)
(select 5,`federal_state`,"",`id`,"" from `TablePREFIX_sobi`);
insert into `TablePREFIX_sobi2_fields_data` (`fieldid`,`data_txt`,`data_bool`,`itemid`,`expiration`)
(select 6,`country`,"",`id`,"" from `TablePREFIX_sobi`);
insert into `TablePREFIX_sobi2_fields_data` (`fieldid`,`data_txt`,`data_bool`,`itemid`,`expiration`)
(select 7,`email`,"",`id`,"" from `TablePREFIX_sobi`);
insert into `TablePREFIX_sobi2_fields_data` (`fieldid`,`data_txt`,`data_bool`,`itemid`,`expiration`)
(select 8,`url`,"",`id`,"" from `TablePREFIX_sobi`);
insert into `TablePREFIX_sobi2_fields_data` (`fieldid`,`data_txt`,`data_bool`,`itemid`,`expiration`)
(select 9,`contact_person`,"",`id`,"" from `TablePREFIX_sobi`);
insert into `TablePREFIX_sobi2_fields_data` (`fieldid`,`data_txt`,`data_bool`,`itemid`,`expiration`)
(select 10,`telephone`,"",`id`,"" from `TablePREFIX_sobi`);
insert into `TablePREFIX_sobi2_fields_data` (`fieldid`,`data_txt`,`data_bool`,`itemid`,`expiration`)
(select 11,`fax`,"",`id`,"" from `TablePREFIX_sobi`);
insert into `TablePREFIX_sobi2_fields_data` (`fieldid`,`data_txt`,`data_bool`,`itemid`,`expiration`)
(select 12,"","",`id`,"" from `TablePREFIX_sobi`);
insert into `TablePREFIX_sobi2_fields_data` (`fieldid`,`data_txt`,`data_bool`,`itemid`,`expiration`)
(select 13,`description`,"",`id`,"" from `TablePREFIX_sobi`);

7 - Edit properties on table TablePREFIX_sobi2_item , TURN ON AUTO INCREMENT ON catid
8 - Run the following SQL:

Code: [Select]
ALTER TABLE `TablePREFIX_sobi2_item` Auto_increment=select (max(`catid`)+1) from `TablePREFIX_sobi2_item`;
Code: [Select]
insert into `TablePREFIX_sobi2_cat_items_relations` (`catid`,`itemid`,`ordering`)
select `catid`,`id`,`ordering` from `TablePREFIX_sobi`;


 8) 8)
« Last Edit: 21. October 2006, 17:25:33 by neo »
Country: Australia Australia |  View Profile


Offline neo

  • Sobi Team
  • Development
  • Sobi Hero
  • *
  • Posts: 8088
  • Reviews:

    What is it?

    • Sobi Team Member
Re: How to upgrade from 1.1.0 to 2.1
« Reply #11 on: 21. October 2006, 12:24:26 »
If this really works, You are the best :)
Support SobiPro - Submit a review on JED
If you want ongoing development for SobiPro and new applications being developed we need your review for SobiPro in the Joomla Extensions Directory.
Thank you very much :w00t:
Country: Germany Germany |  View Profile 

Do you want continued ongoing development, new features and active support?
Please write a review or just vote for SOBI on JED.

Offline sa3di

Re: How to upgrade from SOBI1 to SOBI2
« Reply #12 on: 04. November 2006, 19:25:48 »
yeah if this works u r the best

i will try and tell..
Country: Syrian Arab Republic Syrian Arab Republic |  View Profile

Offline sa3di

Re: How to upgrade from SOBI1 to SOBI2
« Reply #13 on: 05. November 2006, 16:50:38 »
sobi2_categories`
(`catid`,`name`, `image`,`image_position`,`description`,`introtext`,`published`,`checked_out`,`checked_out_time`,`ordering`,`access`,`count`,`params`,`icon`)
select  `id`,`name`,`image`,`image_position`,`description`,`description`,`published`,`checked_out`,`checked_out_time`,`ordering`,`access`,`count`,`params`,
FROM `TablePREFIX_categories` where `section` = "com_sobi"


doesnt work with errors...

can u help?
Country: Syrian Arab Republic Syrian Arab Republic |  View Profile

Offline Trinity

  • Sobi Team
  • Development
  • Sobi Hero
  • *
  • Posts: 8953
  • Reviews:

    What is it?

    • Sobi Team Member
Re: How to upgrade from SOBI1 to SOBI2
« Reply #14 on: 05. November 2006, 17:01:09 »
I can't check it, but try this

insert  into `TablePREFIX_sobi2_categories`
(`catid`,`name`, `image`,`image_position`,`description`,`introtext`,`published`,`checked_out`,`checked_out_time`,`ordering`,`access`,`count`,`params`)
select  `id`,`name`,`image`,`image_position`,`description`,`description`,`published`,`checked_out`,`checked_out_time`,`ordering`,`access`,`count`,`params`
FROM `TablePREFIX_categories` where `section` = "com_sobi"

Trinity
Support SobiPro - Submit a review on JED
If you want ongoing development for SobiPro and new applications being developed we need your review for SobiPro in the Joomla Extensions Directory.
Thank you very much :w00t:
Country: Germany Germany |  View Profile Sigsiu.NET

Offline sa3di

Re: How to upgrade from SOBI1 to SOBI2
« Reply #15 on: 05. November 2006, 19:08:15 »
the same..

please can u help us to make sussceful upgrade ?
Country: Syrian Arab Republic Syrian Arab Republic |  View Profile

Offline Trinity

  • Sobi Team
  • Development
  • Sobi Hero
  • *
  • Posts: 8953
  • Reviews:

    What is it?

    • Sobi Team Member
Re: How to upgrade from SOBI1 to SOBI2
« Reply #16 on: 05. November 2006, 19:14:59 »
which error message do you get?
Support SobiPro - Submit a review on JED
If you want ongoing development for SobiPro and new applications being developed we need your review for SobiPro in the Joomla Extensions Directory.
Thank you very much :w00t:
Country: Germany Germany |  View Profile Sigsiu.NET

Offline sa3di

Re: How to upgrade from SOBI1 to SOBI2
« Reply #17 on: 05. November 2006, 19:22:49 »
pleazse explain this..

2 - Change 99 to the administratorID lookup value in TablePREFIX_users table
Country: Syrian Arab Republic Syrian Arab Republic |  View Profile

Offline wp1

Re: How to upgrade from SOBI1 to SOBI2
« Reply #18 on: 08. November 2006, 18:10:41 »
Hi Trinity, aquadust & Anyone Else Working On This Upgrade Script!

Just want you to know many of us non-coders and/or baby coders are grateful for your work.

I have almost 200 entries in a "SOBI" component now and adding daily.  If I had to convert each manually, it would really be a huge task taking away from other things I should be doing on the site.

SOBI is definately a very important and useful component (Thank you to Trinity & his Team).  It is listed as the Top Rated Component at Extensions.Joomla.Org for quite a while now.

I hope some kind of automatic conversion tool/script can eventually be developed.

Thanks again to all involved.

WP1
Country: United States United States |  View Profile

Offline sa3di

Re: How to upgrade from SOBI1 to SOBI2
« Reply #19 on: 09. November 2006, 11:37:10 »
i have more than 1000 entry on Sobi

so any help
Country: Syrian Arab Republic Syrian Arab Republic |  View Profile

Tags: