Skip to content
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

IBX-8689: Format add_ai_actions.sql #2536

Merged
merged 2 commits into from
Nov 8, 2024
Merged

Conversation

adriendupuis
Copy link
Contributor

@adriendupuis adriendupuis commented Nov 8, 2024

Question Answer
JIRA Ticket IBX-8689
Versions 4.6
Edition All

Suggestion for #2473's add_ai_actions.sql MySQL file:

  • Use standard capitalized style.
  • Add an empty new line at the end of the file.

Checklist

  • Text renders correctly
  • Text has been checked with vale
  • Description metadata is up to date
  • Redirects cover removed/moved pages
  • Code samples are working
  • PHP code samples have been fixed with PHP CS fixer
  • Added link to this PR in relevant JIRA ticket or code PR

@adriendupuis adriendupuis marked this pull request as ready for review November 8, 2024 16:39
Copy link

github-actions bot commented Nov 8, 2024

code_samples/ change report

Before (on target branch)After (in current PR)

code_samples/ai_actions/config/mysql/add_ai_actions.sql

docs/ai_actions/install_ai_actions.md@45: ``` sql
docs/ai_actions/install_ai_actions.md@46: [[= include_file('code_samples/ai_actions/config/mysql/add_ai_actions.sql', 0, None, ' ') =]]
docs/ai_actions/install_ai_actions.md@47: ```


code_samples/ai_actions/config/mysql/add_ai_actions.sql

docs/ai_actions/install_ai_actions.md@45: ``` sql
docs/ai_actions/install_ai_actions.md@46: [[= include_file('code_samples/ai_actions/config/mysql/add_ai_actions.sql', 0, None, ' ') =]]
docs/ai_actions/install_ai_actions.md@47: ```

001⫶    create table ibexa_action_configuration
001⫶    CREATE TABLE ibexa_action_configuration
002⫶    (
002⫶    (
003⫶        id                        int auto_increment primary key,
004⫶ identifier varchar(64) not null,
005⫶ type varchar(32) not null,
006⫶ enabled tinyint(1) not null,
007⫶ action_type_options json null,
008⫶ action_handler_options json null,
009⫶ action_handler_identifier varchar(64) null,
010⫶ created_at datetime null comment '(DC2Type:datetime_immutable)',
011⫶ updated_at datetime null comment '(DC2Type:datetime_immutable)',
012⫶ constraint ibexa_action_configuration_identifier_uc
013⫶ unique (identifier)
014⫶ )
015⫶ collate = utf8mb4_unicode_520_ci;
016⫶
017⫶ create index ibexa_action_configuration_enabled_idx
018⫶ on ibexa_action_configuration (enabled);
019⫶
020⫶ create index ibexa_action_configuration_identifier_idx
021⫶ on ibexa_action_configuration (identifier);
022⫶
023⫶ create table ibexa_action_configuration_ml
024⫶ (
025⫶ id int auto_increment primary key,
026⫶ action_configuration_id int not null,
027⫶ language_id bigint not null,
028⫶ name varchar(190) not null,
029⫶ description longtext null,
030⫶ constraint ibexa_action_configuration_ml_uidx
031⫶ unique (action_configuration_id, language_id),
032⫶ constraint ibexa_action_configuration_ml_to_action_configuration_fk
033⫶ foreign key (action_configuration_id) references ibexa_action_configuration (id)
034⫶ on update cascade on delete cascade,
035⫶ constraint ibexa_action_configuration_ml_to_language_fk
036⫶ foreign key (language_id) references ezcontent_language (id)
037⫶ on update cascade on delete cascade
038⫶ )
039⫶ collate = utf8mb4_unicode_520_ci;
040⫶
041⫶ create index ibexa_action_configuration_ml_action_configuration_idx
042⫶ on ibexa_action_configuration_ml (action_configuration_id);
043⫶
044⫶ create index ibexa_action_configuration_ml_language_idx
045⫶ on ibexa_action_configuration_ml (language_id);
003⫶        id                        INT auto_increment PRIMARY KEY,
004⫶ identifier VARCHAR(64) NOT NULL,
005⫶ type VARCHAR(32) NOT NULL,
006⫶ enabled TINYINT(1) NOT NULL,
007⫶ action_type_options JSON NULL,
008⫶ action_handler_options JSON NULL,
009⫶ action_handler_identifier VARCHAR(64) NULL,
010⫶ created_at DATETIME NULL COMMENT '(DC2Type:datetime_immutable)',
011⫶ updated_at DATETIME NULL COMMENT '(DC2Type:datetime_immutable)',
012⫶ CONSTRAINT ibexa_action_configuration_identifier_uc
013⫶ UNIQUE (identifier)
014⫶ ) COLLATE = utf8mb4_unicode_520_ci;
015⫶
016⫶ CREATE INDEX ibexa_action_configuration_enabled_idx
017⫶ ON ibexa_action_configuration (enabled);
018⫶
019⫶ CREATE INDEX ibexa_action_configuration_identifier_idx
020⫶ ON ibexa_action_configuration (identifier);
021⫶
022⫶ CREATE TABLE ibexa_action_configuration_ml
023⫶ (
024⫶ id INT auto_increment PRIMARY KEY,
025⫶ action_configuration_id INT NOT NULL,
026⫶ language_id BIGINT NOT NULL,
027⫶ name VARCHAR(190) NOT NULL,
028⫶ description LONGTEXT NULL,
029⫶ CONSTRAINT ibexa_action_configuration_ml_uidx
030⫶ UNIQUE (action_configuration_id, language_id),
031⫶ CONSTRAINT ibexa_action_configuration_ml_to_action_configuration_fk
032⫶ FOREIGN KEY (action_configuration_id) REFERENCES ibexa_action_configuration (id)
033⫶ ON UPDATE CASCADE ON DELETE CASCADE,
034⫶ CONSTRAINT ibexa_action_configuration_ml_to_language_fk
035⫶ FOREIGN KEY (language_id) REFERENCES ezcontent_language (id)
036⫶ ON UPDATE CASCADE ON DELETE CASCADE
037⫶ ) COLLATE = utf8mb4_unicode_520_ci;
038⫶
039⫶ CREATE INDEX ibexa_action_configuration_ml_action_configuration_idx
040⫶ ON ibexa_action_configuration_ml (action_configuration_id);
041⫶
042⫶ CREATE INDEX ibexa_action_configuration_ml_language_idx
043⫶ ON ibexa_action_configuration_ml (language_id);


Download colorized diff

@dabrt dabrt merged commit c8ee8ed into IBX-8689 Nov 8, 2024
5 of 6 checks passed
@dabrt dabrt deleted the IBX-8689-fix-mysql-format branch November 8, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants