Wikipedia:Old PHP script

CREATE TABLE WIKI_cur (
   cur_id int(10) unsigned NOT NULL auto_increment,
   cur_title varchar(255) NOT NULL,
   cur_text text NOT NULL,
   cur_comment varchar(255) NOT NULL,
   cur_user int(10) unsigned NOT NULL,
   cur_user_text varchar(255) NOT NULL,
   cur_old_version mediumint(8) unsigned NOT NULL,
   cur_timestamp datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
   cur_minor_edit tinyint(4) NOT NULL,
   cur_restrictions varchar(255) NOT NULL,
   PRIMARY KEY (cur_id),
   UNIQUE cur_title (cur_title)
);


CREATE TABLE WIKI_old (
   old_id int(10) unsigned NOT NULL auto_increment,
   old_title varchar(255) NOT NULL,
   old_text text NOT NULL,
   old_comment varchar(255) NOT NULL,
   old_user int(10) unsigned NOT NULL,
   old_user_text varchar(255) NOT NULL,
   old_old_version int(10) unsigned NOT NULL,
   old_timestamp datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,
   old_minor_edit tinyint(4) NOT NULL,
   PRIMARY KEY (old_id)
);

CREATE TABLE WIKI_user (
   user_id int(10) unsigned NOT NULL auto_increment,
   user_name varchar(255) NOT NULL,
   user_password varchar(255) NOT NULL,
   user_rights varchar(255) NOT NULL,
   PRIMARY KEY (user_id),
   UNIQUE user_name (user_name)
);


See also : Wikipedia PHP script

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.