Make WordPress Core


Ignore:
Timestamp:
07/23/2003 12:26:03 AM (21 years ago)
Author:
mikelittle
Message:

Added notes column to links. Can add/edit/save them in linkmanager.
Update/install scripts updated for new column.
added new methods get_linkobjects() and get_linkobjectsbyname()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upgrade-071-to-072.php

    r260 r265  
    7171<?php
    7272    break;
    73    
    74     case 1:
     73
     74    case 1:
    7575?>
    7676<h1>Step 1</h1>
     77<p>There are some changes we need to make to the links tables with this version, so lets get those out of
     78  the way.</p>
     79<?php
     80$error_count = 0;
     81$tablename = $tablelinks;
     82$ddl = "ALTER TABLE $tablelinks ADD COLUMN link_notes MEDIUMTEXT NOT NULL DEFAULT '' ";
     83maybe_add_column($tablename, 'link_notes', $ddl);
     84if (check_column($tablelinks, 'link_notes', 'mediumtext')) {
     85    $res .= $tablename . ' - ok <br />';
     86} else {
     87    $res .= 'There was a problem with ' . $tablename . '<br />';
     88    ++$error_count;
     89}
     90?>
     91<p>OK, that wasn't too bad was it? Let's move on to <a href="<?php echo $thisfile;?>?step=2">step 2</a>!</p>
     92
     93<?php
     94    case 2:
     95?>
     96<h1>Step 2</h1>
    7797<p>There are a few new database tables with this version, so lets get those out of
    7898  the way.</p>
Note: See TracChangeset for help on using the changeset viewer.