Skip to content

Commit

Permalink
[com_fields] Remove unneeded fields from com_fields (#13621)
Browse files Browse the repository at this point in the history
* Remove unneeded fields from com_fields

* Remove columns from installation
  • Loading branch information
Thomas Hunziker authored and rdeutz committed Jan 23, 2017
1 parent 5727728 commit c437fce
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 45 deletions.
Expand Up @@ -8,7 +8,6 @@ CREATE TABLE IF NOT EXISTS `#__fields` (
`label` varchar(255) NOT NULL DEFAULT '',
`default_value` text NOT NULL DEFAULT '',
`type` varchar(255) NOT NULL DEFAULT 'text',
`options` varchar(255) NOT NULL DEFAULT '',
`note` varchar(255) NOT NULL DEFAULT '',
`description` text NOT NULL,
`state` tinyint(1) NOT NULL DEFAULT '0',
Expand All @@ -18,15 +17,11 @@ CREATE TABLE IF NOT EXISTS `#__fields` (
`ordering` int(11) NOT NULL DEFAULT '0',
`params` text NOT NULL,
`fieldparams` text NOT NULL,
`attributes` text NOT NULL,
`language` char(7) NOT NULL DEFAULT '',
`created_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_user_id` int(10) unsigned NOT NULL DEFAULT '0',
`created_by_alias` varchar(255) NOT NULL DEFAULT '',
`modified_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_by` int(10) unsigned NOT NULL DEFAULT '0',
`publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`access` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
KEY `idx_checkout` (`checked_out`),
Expand Down
Expand Up @@ -11,7 +11,6 @@ CREATE TABLE "#__fields" (
"label" varchar(255) DEFAULT '' NOT NULL,
"default_value" text DEFAULT '' NOT NULL,
"type" varchar(255) DEFAULT 'text' NOT NULL,
"options" varchar(255) DEFAULT '' NOT NULL,
"note" varchar(255) DEFAULT '' NOT NULL,
"description" text DEFAULT '' NOT NULL,
"state" smallint DEFAULT 0 NOT NULL,
Expand All @@ -21,15 +20,11 @@ CREATE TABLE "#__fields" (
"ordering" bigint DEFAULT 0 NOT NULL,
"params" text DEFAULT '' NOT NULL,
"fieldparams" text DEFAULT '' NOT NULL,
"attributes" text DEFAULT '' NOT NULL,
"language" varchar(7) DEFAULT '' NOT NULL,
"created_time" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
"created_user_id" bigint DEFAULT 0 NOT NULL,
"created_by_alias" varchar(255) DEFAULT '' NOT NULL,
"modified_time" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
"modified_by" bigint DEFAULT 0 NOT NULL,
"publish_up" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
"publish_down" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
"access" bigint DEFAULT 0 NOT NULL,
PRIMARY KEY ("id")
);
Expand Down
Expand Up @@ -12,7 +12,6 @@ CREATE TABLE [#__fields] (
[label] [nvarchar](255) NOT NULL DEFAULT '',
[default_value] [nvarchar](max) NOT NULL DEFAULT '',
[type] [nvarchar](255) NOT NULL DEFAULT '',
[options] [nvarchar](255) NOT NULL DEFAULT '',
[note] [nvarchar](255) NOT NULL DEFAULT '',
[description] [nvarchar](max) NOT NULL DEFAULT '',
[state] [smallint] NOT NULL DEFAULT 0,
Expand All @@ -22,15 +21,11 @@ CREATE TABLE [#__fields] (
[ordering] [int] NOT NULL DEFAULT 0,
[params] [nvarchar](max) NOT NULL DEFAULT '',
[fieldparams] [nvarchar](max) NOT NULL DEFAULT '',
[attributes] [nvarchar](max) NOT NULL DEFAULT '',
[language] [nvarchar](7) NOT NULL DEFAULT '',
[created_time] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
[created_user_id] [bigint] NOT NULL DEFAULT 0,
[created_by_alias] [nvarchar](255) NOT NULL DEFAULT '',
[modified_time] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
[modified_by] [bigint] NOT NULL DEFAULT 0,
[publish_up] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
[publish_down] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
[access] [int] NOT NULL DEFAULT 1,
CONSTRAINT [PK_#__fields_id] PRIMARY KEY CLUSTERED(
[id] ASC)
Expand Down
15 changes: 0 additions & 15 deletions administrator/components/com_fields/models/forms/field.xml
Expand Up @@ -231,21 +231,6 @@
size="40"
/>

<field
name="image"
type="media"
label="COM_FIELDS_FIELD_IMAGE_LABEL"
description="COM_FIELDS_FIELD_IMAGE_DESC"
/>

<field
name="image_alt"
type="text"
label="COM_FIELDS_FIELD_IMAGE_ALT_LABEL"
description="COM_FIELDS_FIELD_IMAGE_ALT_DESC"
size="20"
/>

<field
name="render_class"
type="textarea"
Expand Down
5 changes: 0 additions & 5 deletions installation/sql/mysql/joomla.sql
Expand Up @@ -662,7 +662,6 @@ CREATE TABLE IF NOT EXISTS `#__fields` (
`label` varchar(255) NOT NULL DEFAULT '',
`default_value` text NOT NULL DEFAULT '',
`type` varchar(255) NOT NULL DEFAULT 'text',
`options` varchar(255) NOT NULL DEFAULT '',
`note` varchar(255) NOT NULL DEFAULT '',
`description` text NOT NULL,
`state` tinyint(1) NOT NULL DEFAULT '0',
Expand All @@ -672,15 +671,11 @@ CREATE TABLE IF NOT EXISTS `#__fields` (
`ordering` int(11) NOT NULL DEFAULT '0',
`params` text NOT NULL,
`fieldparams` text NOT NULL,
`attributes` text NOT NULL,
`language` char(7) NOT NULL DEFAULT '',
`created_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_user_id` int(10) unsigned NOT NULL DEFAULT '0',
`created_by_alias` varchar(255) NOT NULL DEFAULT '',
`modified_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`modified_by` int(10) unsigned NOT NULL DEFAULT '0',
`publish_up` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`publish_down` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`access` int(11) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`),
KEY `idx_checkout` (`checked_out`),
Expand Down
5 changes: 0 additions & 5 deletions installation/sql/postgresql/joomla.sql
Expand Up @@ -675,7 +675,6 @@ CREATE TABLE "#__fields" (
"label" varchar(255) DEFAULT '' NOT NULL,
"default_value" text DEFAULT '' NOT NULL,
"type" varchar(255) DEFAULT 'text' NOT NULL,
"options" varchar(255) DEFAULT '' NOT NULL,
"note" varchar(255) DEFAULT '' NOT NULL,
"description" text DEFAULT '' NOT NULL,
"state" smallint DEFAULT 0 NOT NULL,
Expand All @@ -685,15 +684,11 @@ CREATE TABLE "#__fields" (
"ordering" bigint DEFAULT 0 NOT NULL,
"params" text DEFAULT '' NOT NULL,
"fieldparams" text DEFAULT '' NOT NULL,
"attributes" text DEFAULT '' NOT NULL,
"language" varchar(7) DEFAULT '' NOT NULL,
"created_time" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
"created_user_id" bigint DEFAULT 0 NOT NULL,
"created_by_alias" varchar(255) DEFAULT '' NOT NULL,
"modified_time" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
"modified_by" bigint DEFAULT 0 NOT NULL,
"publish_up" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
"publish_down" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL,
"access" bigint DEFAULT 0 NOT NULL,
PRIMARY KEY ("id")
);
Expand Down
5 changes: 0 additions & 5 deletions installation/sql/sqlazure/joomla.sql
Expand Up @@ -1096,7 +1096,6 @@ CREATE TABLE [#__fields] (
[label] [nvarchar](255) NOT NULL DEFAULT '',
[default_value] [nvarchar](max) NOT NULL DEFAULT '',
[type] [nvarchar](255) NOT NULL DEFAULT '',
[options] [nvarchar](255) NOT NULL DEFAULT '',
[note] [nvarchar](255) NOT NULL DEFAULT '',
[description] [nvarchar](max) NOT NULL DEFAULT '',
[state] [smallint] NOT NULL DEFAULT 0,
Expand All @@ -1106,15 +1105,11 @@ CREATE TABLE [#__fields] (
[ordering] [int] NOT NULL DEFAULT 0,
[params] [nvarchar](max) NOT NULL DEFAULT '',
[fieldparams] [nvarchar](max) NOT NULL DEFAULT '',
[attributes] [nvarchar](max) NOT NULL DEFAULT '',
[language] [nvarchar](7) NOT NULL DEFAULT '',
[created_time] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
[created_user_id] [bigint] NOT NULL DEFAULT 0,
[created_by_alias] [nvarchar](255) NOT NULL DEFAULT '',
[modified_time] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
[modified_by] [bigint] NOT NULL DEFAULT 0,
[publish_up] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
[publish_down] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000',
[access] [int] NOT NULL DEFAULT 1,
CONSTRAINT [PK_#__fields_id] PRIMARY KEY CLUSTERED(
[id] ASC)
Expand Down

0 comments on commit c437fce

Please sign in to comment.