Plugin Directory

Changeset 178037


Ignore:
Timestamp:
11/30/2009 09:10:19 AM (16 years ago)
Author:
binnyva
Message:

Bugfix - db inconsistancy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • surveys/trunk/surveys.php

    r176325 r178037  
    6666    add_option('surveys_insert_csv_header', 1);
    6767   
    68     $database_version = '2';
     68    $database_version = '3';
    6969    $installed_db = get_option('surveys_db_version');
    7070   
     
    8484                    survey_ID int(11) unsigned NOT NULL,
    8585                    question mediumtext NOT NULL,
    86                     allow_user_answer INT( 1 ) NOT NULL DEFAULT '0',
    87                     allow_multiple_answers INT( 2 ) NOT NULL DEFAULT '0',
    88                     INDEX ( survey_ID ),
    89                     PRIMARY KEY  (ID)
     86                    allow_user_answer int(1) NOT NULL default '0',
     87                    allow_multiple_answers int(2) NOT NULL default '0',
     88                    user_answer_format enum('entry','textarea','checkbox') NOT NULL default 'entry',
     89                    PRIMARY KEY  (ID),
     90                    KEY survey_id (survey_ID)
    9091                    ) ;
    9192                CREATE TABLE {$wpdb->prefix}surveys_result (
Note: See TracChangeset for help on using the changeset viewer.