osCmax v2.5 User Manual
Results 1 to 5 of 5

Updating Database

This is a discussion on Updating Database within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Updating Database To update my database I use easy populate. But in table easy populate creates there is no variable ...

      
  1. #1
    New Member
    Join Date
    Jan 2003
    Posts
    8
    Rep Power
    0


    Default Updating Database

    Updating Database
    To update my database I use easy populate.
    But in table easy populate creates there is no variable for the medium image and I need this.
    Im missing something here? Can I put that variable in easy populate? If yes, How?

    Acemang.

  2. #2
    Member
    Join Date
    Dec 2002
    Posts
    92
    Rep Power
    0


    Default

    I would suggest contacting the developer who wrote the Easy populate contrib for assistance.

    For the record I simply use Excel and save as csv and use that.

  3. #3
    New Member
    Join Date
    Jan 2003
    Posts
    8
    Rep Power
    0


    Default

    Can you teach me how do you use the csv?

    Thanks for Help.

  4. #4
    Member
    Join Date
    Dec 2002
    Posts
    92
    Rep Power
    0


    Default

    I mean <filename>.csv not CVS (concurrent version system) used by many open source development teams including osC.

    With .csv it is simply a comma separated value file you can save them from excel by changing the format when saving...

  5. #5
    Member
    Join Date
    Jan 2003
    Posts
    37
    Rep Power
    0


    Default Alter table...

    Acemang,

    There is a contribution called 'Mo Pics Modification v1.1 for OsCommerce 2.2'

    The contrib is accompanied by a text-file with instructiones for changing the structure of the table, here's a part of this file:
    +==========+
    // Each of these lines go into the MySQL Database. You must add them one at a time using PHPMyAdmin

    ALTER TABLE `catalog`.`products` ADD `products_subimage1` VARCHAR(64) AFTER `products_bimage`
    ALTER TABLE `catalog`.`products` ADD `products_bsubimage1` VARCHAR(64) AFTER `products_subimage1`
    ALTER TABLE `catalog`.`products` ADD `products_subimage2` VARCHAR(64) AFTER `products_bsubimage1`
    etc...
    +==========+

    I love this instruction, as the 'standard' instructions usually says:
    +==========+
    drop table if exists *****;
    create table ***** (
    etc...
    +==========+

    ...which really s***s if there are values inside this table...

    Now, you should be able to put together a SQL-query based on the above code (far above mind you) to change your DB.

    Hope you figure it out, good luck!

    PS! Backup, backup and backup!
    Petter - Arktisk Pudder

Similar Threads

  1. Date Available Not Updating
    By seandon01 in forum osCMax v2 Features Discussion
    Replies: 0
    Last Post: 10-06-2006, 02:24 AM
  2. Problem updating currencies
    By rashunda in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 08-03-2005, 11:10 PM
  3. Second Language Not Updating
    By makemethis in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 07-08-2004, 11:40 AM
  4. updating product descriptions???
    By Eulando in forum osCMax v1.7 Installation
    Replies: 1
    Last Post: 06-29-2004, 07:46 AM
  5. Admin Section not updating changes
    By cheaptrk in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 05-15-2003, 11:37 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •