Advertisement
Guest User

Joomla content 1.0 vs 2.5

a guest
Nov 26th, 2012
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 3.99 KB | None | 0 0
  1. OLD TABLE STRUCTURE IN Joomla 1.0:
  2.  
  3.   CREATE TABLE IF NOT EXISTS `jos_content` (
  4.    `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  5.   `title` VARCHAR(100) NOT NULL DEFAULT '',
  6.   `title_alias` VARCHAR(100) NOT NULL DEFAULT '',
  7.   `introtext` mediumtext NOT NULL,
  8.   `fulltext` mediumtext NOT NULL,
  9.   `state` tinyint(3) NOT NULL DEFAULT '0',
  10.   `sectionid` INT(11) UNSIGNED NOT NULL DEFAULT '0',
  11.   `mask` INT(11) UNSIGNED NOT NULL DEFAULT '0',
  12.   `catid` INT(11) UNSIGNED NOT NULL DEFAULT '0',
  13.   `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  14.   `created_by` INT(11) UNSIGNED NOT NULL DEFAULT '0',
  15.   `created_by_alias` VARCHAR(100) NOT NULL DEFAULT '',
  16.   `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  17.   `modified_by` INT(11) UNSIGNED NOT NULL DEFAULT '0',
  18.   `checked_out` INT(11) UNSIGNED NOT NULL DEFAULT '0',
  19.   `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  20.   `publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  21.   `publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  22.   `images` text NOT NULL,
  23.   `urls` text NOT NULL,
  24.   `attribs` text NOT NULL,
  25.   `version` INT(11) UNSIGNED NOT NULL DEFAULT '1',
  26.   `parentid` INT(11) UNSIGNED NOT NULL DEFAULT '0',
  27.   `ordering` INT(11) NOT NULL DEFAULT '0',
  28.   `metakey` text NOT NULL,
  29.   `metadesc` text NOT NULL,
  30.   `access` INT(11) UNSIGNED NOT NULL DEFAULT '0',
  31.   `hits` INT(11) UNSIGNED NOT NULL DEFAULT '0',
  32.   PRIMARY KEY (`id`),
  33.   KEY `idx_section` (`sectionid`),
  34.   KEY `idx_access` (`access`),
  35.   KEY `idx_checkout` (`checked_out`),
  36.   KEY `idx_state` (`state`),
  37.   KEY `idx_catid` (`catid`),
  38.   KEY `idx_mask` (`mask`)
  39. ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1224 ;
  40.  
  41.  
  42. NEW TABLE STRUCTURE IN Joomla 2.5:
  43.  
  44. CREATE TABLE IF NOT EXISTS `rf1vo_content` (
  45.   `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
  46.   `asset_id` INT(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'FK to the #__assets table.',
  47.   `title` VARCHAR(255) NOT NULL DEFAULT '',
  48.   `alias` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
  49.   `title_alias` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT 'Deprecated in Joomla! 3.0',
  50.   `introtext` mediumtext NOT NULL,
  51.   `fulltext` mediumtext NOT NULL,
  52.   `state` tinyint(3) NOT NULL DEFAULT '0',
  53.   `sectionid` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  54.   `mask` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  55.   `catid` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  56.   `created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  57.   `created_by` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  58.   `created_by_alias` VARCHAR(255) NOT NULL DEFAULT '',
  59.   `modified` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  60.   `modified_by` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  61.   `checked_out` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  62.   `checked_out_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  63.   `publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  64.   `publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  65.   `images` text NOT NULL,
  66.   `urls` text NOT NULL,
  67.   `attribs` VARCHAR(5120) NOT NULL,
  68.   `version` INT(10) UNSIGNED NOT NULL DEFAULT '1',
  69.   `parentid` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  70.   `ordering` INT(11) NOT NULL DEFAULT '0',
  71.   `metakey` text NOT NULL,
  72.   `metadesc` text NOT NULL,
  73.   `access` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  74.   `hits` INT(10) UNSIGNED NOT NULL DEFAULT '0',
  75.   `metadata` text NOT NULL,
  76.   `featured` tinyint(3) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Set if article is featured.',
  77.   `language` CHAR(7) NOT NULL COMMENT 'The language code for the article.',
  78.   `xreference` VARCHAR(50) NOT NULL COMMENT 'A reference to enable linkages to external data sets.',
  79.   PRIMARY KEY (`id`),
  80.   KEY `idx_access` (`access`),
  81.   KEY `idx_checkout` (`checked_out`),
  82.   KEY `idx_state` (`state`),
  83.   KEY `idx_catid` (`catid`),
  84.   KEY `idx_createdby` (`created_by`),
  85.   KEY `idx_featured_catid` (`featured`,`catid`),
  86.   KEY `idx_language` (`language`),
  87.   KEY `idx_xreference` (`xreference`)
  88. ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement