Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] POST-MIGRATION: bug in Tools?? (Check CB FIELDS DATA STORAGE)

  • mikerotec
  • mikerotec
  • OFFLINE
  • Posts: 346
  • Thanks: 28
  • Karma: 2
8 years 2 months ago - 8 years 2 months ago #284954 by mikerotec
Just did what appears to be a successful test migration (barebones CB/CBSubs, plus Kunena Integration)

Ran the tool and it showed this suggestion:
Code:
CB fields data storage database structure differences: Table #__comprofiler Column fb_userid type is varchar(50) instead of text Table #__comprofiler Column twitter_userid type is varchar(50) instead of text The CB fields data storage database structure differences can be fixed (adjusted) by clicking here: Click here to fix (adjust) all CB fields data storage database differences listed above (you can also Click here to preview fixing (adjusting) queries in a dry-run), but in all cases you need to backup database first as this adjustment is changing the database structure to match the needed structure for the installed version. Click here to show details CB fields data storage database checks done. If all lines above are in green, test completed successfully. Otherwise, please take corrective measures proposed in red.

Ran the "click Here to fix" and got back this:
Code:
An error has occurred. 1170 BLOB/TEXT column 'fb_userid' used in key specification without a key length SQL=ALTER TABLE `redacted_comprofiler` CHANGE `fb_userid` `fb_userid` text

I'm hoping this hasn't wrecked anything... ran the Tool again and get same as the first screen. Do I need to manually delete or edit something in the DB?
Last edit: 8 years 2 months ago by krileon. Reason: Added [SOLVED] tag to subject

Please Log in or Create an account to join the conversation.

  • mikerotec
  • mikerotec
  • OFFLINE
  • Posts: 346
  • Thanks: 28
  • Karma: 2
8 years 2 months ago - 8 years 2 months ago #284955 by mikerotec
Incidentally, the DRY RUN reported success...

Table #__comprofiler Column fb_userid changed successfully, type: text
ALTER TABLE `#__comprofiler` CHANGE `fb_userid` `fb_userid` text
Table #__comprofiler Column twitter_userid changed successfully, type: text
ALTER TABLE `#__comprofiler` CHANGE `twitter_userid` `twitter_userid` text
Table #__comprofiler Column acceptedterms structure is up-to-date.
Dry-run of CB fields data storage database adjustments done. None of the queries listed in details have been performed.

and if I do the "STRICT" tool check, it gives me this:
Code:
CB fields data storage database structure differences: Table #__comprofiler Column avatar type is varchar(255) instead of text Table #__comprofiler Column canvas type is varchar(255) instead of text Table #__comprofiler Column cb_city type is varchar(255) instead of text Table #__comprofiler Column cb_state type is varchar(255) instead of text Table #__comprofiler Column cb_country type is varchar(255) instead of text Table #__comprofiler Column cb_serialno type is varchar(255) instead of text Table #__comprofiler Column cb_aircraft type is varchar(255) instead of text Table #__comprofiler Column cb_aircraftreg type is varchar(255) instead of text Table #__comprofiler Column fb_userid type is varchar(50) instead of text Table #__comprofiler Column twitter_userid type is varchar(50) instead of text

again... the dry run reports SUCCESSFUL...
(but I'm not going to attempt any more Tool fixes until you advise about the error...)
Last edit: 8 years 2 months ago by mikerotec.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48456
  • Thanks: 8280
  • Karma: 1443
8 years 2 months ago #284985 by krileon
Text fields can not have a database index unless a length is specified. We've a bug ticket regarding this already. Install CB Connect so it can take over fb_userid and twitter_userid or simply delete them as they've no use without CB Connect. This is not a migration issue, but an issue with our field tool.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: mikerotec

Please Log in or Create an account to join the conversation.

  • mikerotec
  • mikerotec
  • OFFLINE
  • Posts: 346
  • Thanks: 28
  • Karma: 2
8 years 2 months ago #285006 by mikerotec
OK! I don't want CB_connect, so will delete the fields and see how it goes.

It would be highly beneficial if you would take all of the "Known issue" items and post them somewhere in a "Migration checklist". (I have already spent DAYS building up my personal pre- and post- migration "to-do" checklist, and I still haven't got to the final part where I record all the 1.9.1 settings yet!)

Please Log in or Create an account to join the conversation.

  • mikerotec
  • mikerotec
  • OFFLINE
  • Posts: 346
  • Thanks: 28
  • Karma: 2
8 years 2 months ago #285019 by mikerotec
Just for the record, deleting those two fields allowed the Tool to run correctly! Edging closer to LIVE MIGRATION... :-)

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48456
  • Thanks: 8280
  • Karma: 1443
8 years 2 months ago #285059 by krileon

DAYS building up my personal pre- and post- migration "to-do" checklist

You're lucky it wasn't months (like ours). It's a migration. There's nothing easy about it. Checklists like that are site by site based. CB 1.x with all plugins to CB 2.x with all plugins will migrate fine. For example you had CB Facebook Connect and CB Twitter Connect installed at some point which created those fields. Installing CB Connect would've restored them after you had migrated CB 1.x to CB 2.x. You're not doing a 1:1 migration if you're not installing old plugins you already had. Deleting the plugin does not delete its fields to avoid data loss so your issue isn't a symptom of migration.

I know it's frustrating and time consuming, but it's just the nature of the beast. Joomla 1.5 to 3.x wasn't very fun for us lol.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: mikerotec

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum