-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[com_fields] MSSQL - sql for Custom fields #12660
Merged
Merged
Changes from 14 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ec5a751
MSSQL - update sql for Custom fields (#11833)
alikon 47cb0d4
MSSQL - update sql for Custom fields (#11833)
alikon 4ae5c4a
MSSQL - install sql for Custom fields (#11833)
alikon d6e069a
minor cs + defaul values
andrepereiradasilva 20b0f6c
Merge pull request #24 from andrepereiradasilva/patch-20
alikon 62f09e9
move hits field on a new line
alikon 7f785fa
removed version, hits fields
alikon bfed1dc
removed (version,hits) fields
alikon e5cf302
mssql com_fields#13091
alikon 0bf8049
mssql com_fields#13091
alikon bf5fd7a
[com_fields] No need for an alias in fields groups. #13115
alikon aeb306e
[com_fields] No need for an alias in fields groups. #13115
alikon 43a7e2c
missed comma
alikon db9cce5
missed comma
alikon a3209e5
update for #13175
alikon aa015c0
update for #13175
alikon 76c7f98
update for #13246
alikon 1d43641
updated for #13246
alikon 377364e
added the missed DEFAULT
alikon ec4bbc4
added space before (
alikon 6fad1a2
added space before (
alikon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
143 changes: 143 additions & 0 deletions
143
administrator/components/com_admin/sql/updates/sqlazure/3.7.0-2016-08-29.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
/****** Object: Table [#__fields] ******/ | ||
|
||
SET QUOTED_IDENTIFIER ON; | ||
|
||
CREATE TABLE [#__fields]( | ||
[id] [int] IDENTITY(1,1) NOT NULL, | ||
[asset_id] [int] NOT NULL DEFAULT 0, | ||
[context] [nvarchar](255) NOT NULL DEFAULT '', | ||
[group_id] [int] NOT NULL DEFAULT 0, | ||
[assigned_cat_ids] [nvarchar](255) NOT NULL DEFAULT '', | ||
[title] [nvarchar](255) NOT NULL DEFAULT '', | ||
[alias] [nvarchar](255) NOT NULL DEFAULT '', | ||
[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, | ||
[required] [smallint] NOT NULL DEFAULT 0, | ||
[checked_out] [bigint] NOT NULL DEFAULT 0, | ||
[checked_out_time] [datetime] NOT NULL DEFAULT '1900-01-01 00:00:00', | ||
[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) | ||
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON | ||
) ON [PRIMARY]) ON [PRIMARY]; | ||
|
||
CREATE NONCLUSTERED INDEX [idx_checkout] ON [#__fields]( | ||
[checked_out] ASC) | ||
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
CREATE NONCLUSTERED INDEX [idx_state] ON [#__fields]( | ||
[state] ASC) | ||
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
CREATE NONCLUSTERED INDEX [idx_access] ON [#__fields]( | ||
[access] ASC) | ||
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
CREATE NONCLUSTERED INDEX [idx_context] ON [#__fields]( | ||
[context] ASC) | ||
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
CREATE NONCLUSTERED INDEX [idx_language] ON [#__fields]( | ||
[language] ASC) | ||
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
/****** Object: Table [#__fields_groups] ******/ | ||
|
||
SET QUOTED_IDENTIFIER ON; | ||
|
||
CREATE TABLE [#__fields_groups]( | ||
[id] [int] IDENTITY(1,1) NOT NULL, | ||
[asset_id] [int] NOT NULL DEFAULT 0, | ||
[extension] [nvarchar](255) NOT NULL DEFAULT '', | ||
[title] [nvarchar](255) NOT NULL DEFAULT '', | ||
[note] [nvarchar](255) NOT NULL DEFAULT '', | ||
[description] [nvarchar](max) NOT NULL DEFAULT '', | ||
[state] [smallint] NOT NULL DEFAULT 0, | ||
[checked_out] [bigint] NOT NULL DEFAULT 0, | ||
[checked_out_time] [datetime] NOT NULL DEFAULT '1900-01-01 00:00:00', | ||
[ordering] [int] NOT NULL DEFAULT 0, | ||
[language] [nvarchar](7) NOT NULL DEFAULT '', | ||
[created] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000', | ||
[created_by] [bigint] NOT NULL DEFAULT 0, | ||
[modified] [datetime] NOT NULL DEFAULT '1900-01-01T00:00:00.000', | ||
[modified_by] [bigint] NOT NULL DEFAULT 0, | ||
[access] [int] NOT NULL DEFAULT 1, | ||
CONSTRAINT [PK_#__fields_groups_id] PRIMARY KEY CLUSTERED( | ||
[id] ASC) | ||
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON | ||
) ON [PRIMARY]) ON [PRIMARY]; | ||
|
||
CREATE NONCLUSTERED INDEX [idx_checkout] ON [#__fields_groups]( | ||
[checked_out] ASC) | ||
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
CREATE NONCLUSTERED INDEX [idx_state] ON [#__fields_groups]( | ||
[state] ASC) | ||
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
CREATE NONCLUSTERED INDEX [idx_created_by] ON [#__fields_groups]( | ||
[created_by] ASC) | ||
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
CREATE NONCLUSTERED INDEX [idx_access] ON [#__fields_groups]( | ||
[access] ASC) | ||
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
CREATE NONCLUSTERED INDEX [idx_extension] ON [#__fields_groups]( | ||
[extension] ASC) | ||
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
CREATE NONCLUSTERED INDEX [idx_language] ON [#__fields_groups]( | ||
[language] ASC) | ||
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
/****** Object: Table [#__fields_values] ******/ | ||
|
||
SET QUOTED_IDENTIFIER ON; | ||
|
||
CREATE TABLE [#__fields_values]( | ||
[field_id] [bigint] NOT NULL DEFAULT 1, | ||
[context] [nvarchar](255) NOT NULL DEFAULT '', | ||
[item_id] [nvarchar](255) NOT NULL DEFAULT '', | ||
[value] [nvarchar](max) NOT NULL DEFAULT '', | ||
) ON [PRIMARY]; | ||
|
||
CREATE NONCLUSTERED INDEX [idx_field_id] ON [#__fields_values]( | ||
[field_id] ASC) | ||
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
CREATE NONCLUSTERED INDEX [idx_context] ON [#__fields_values]( | ||
[context] ASC) | ||
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
CREATE NONCLUSTERED INDEX [idx_item_id] ON [#__fields_values]( | ||
[item_id] ASC) | ||
WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF); | ||
|
||
SET IDENTITY_INSERT [#__extensions] ON; | ||
|
||
INSERT INTO [#__extensions] ([extension_id], [name], [type], [element], [folder], [client_id], [enabled], [access], [protected], [manifest_cache], [params], [custom_data], [system_data], [checked_out], [checked_out_time], [ordering], [state]) | ||
SELECT 33, 'com_fields', 'component', 'com_fields', '', 1, 1, 1, 0, '', '', '', '', 0, '1900-01-01 00:00:00', 0, 0 | ||
UNION ALL | ||
SELECT 461, 'plg_system_fields', 'plugin', 'fields', 'system', 0, 1, 1, 0, '', '', '', '', 0, '1900-01-01 00:00:00', 0, 0 | ||
UNION ALL | ||
SELECT 462, 'plg_fields_gallery', 'plugin', 'gallery', 'fields', 0, 1, 1, 0, '', '', '', '', 0, '1900-01-01 00:00:00', 0, 0; | ||
|
||
SET IDENTITY_INSERT [#__extensions] OFF; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is from #12642 (comment)
Cannot insert the value NULL into column 'fieldparams', table 'joomla.dbo.#__fields'; column does not allow nulls.