Diff for /db/prgsrc/mkdb.pl between versions 1.1 and 1.8

version 1.1, 2000/10/16 23:20:49 version 1.8, 2000/11/11 00:23:20
Line 4 Line 4
   
 mkdb.pl - a script for creation of new database.   mkdb.pl - a script for creation of new database. 
   
   =head1 SYNOPSIS
   
   mkdb.pl
   
   
 =head1 DESCRIPTION  =head1 DESCRIPTION
   
 This script will create tables Questions and Tournaments  This script will create tables Questions and Tournaments
Line 60  print "Connected successfully\n"; Line 65  print "Connected successfully\n";
                         KEY QuestionIdKey (QuestionId),                          KEY QuestionIdKey (QuestionId),
                 ParentId        SMALLINT UNSIGNED NOT NULL,                  ParentId        SMALLINT UNSIGNED NOT NULL,
                         KEY ParentIdKey (ParentId),                          KEY ParentIdKey (ParentId),
                 Number          TINYINT UNSIGNED NOT NULL,                  Number         SMALLINT UNSIGNED NOT NULL,
                         KEY NumberKey (Number),                          KEY NumberKey (Number),
                 # Currently there are 2 types of questions: 'Chto? Gde? Kogda?'                  Type            TEXT NOT NULL,
                 # and 'Brain ring'.  
                 Type                    ENUM('þ','â') NOT NULL,  
                 Question        TEXT,                  Question        TEXT,
                 Answer          TINYTEXT,                  Answer          TEXT,
                 Authors                 TINYTEXT,                  Authors         TEXT,
                 Sources                 TINYTEXT,                  Sources         TEXT,
                 Comments        TEXT                  Comments        TEXT,
                   Rating          TEXT
         )")          )")
         or die "Can't create Questions table: $!\n";          or die "Can't create Questions table: $!\n";
                   
Line 82  print "Connected successfully\n"; Line 86  print "Connected successfully\n";
                         KEY ParentIdKey (ParentId),                          KEY ParentIdKey (ParentId),
                 Title           TINYTEXT NOT NULL,                  Title           TINYTEXT NOT NULL,
                 QuestionsNum INT UNSIGNED DEFAULT 0,                  QuestionsNum INT UNSIGNED DEFAULT 0,
                 Type                    ENUM('ç','ô','þ'),                  Type            ENUM('ç','ô','þ'),
                 MetaId          INT UNSIGNED,  
                 Copyright       TEXT,                  Copyright       TEXT,
                 Info                    TEXT,                  Info                    TEXT,
                 URL                     TINYTEXT,                  URL                     TINYTEXT,
                 FileName        CHAR(25),                  FileName        CHAR(25),
                   Editors         TEXT,
                   EnteredBy       TEXT,
                 PlayedAt        DATE,                  PlayedAt        DATE,
                 CreatedAt       DATE NOT NULL                  CreatedAt       DATE NOT NULL
         )")           )") 

Removed from v.1.1  
changed lines
  Added in v.1.8


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>