- 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
[DEV-2750] add migration to switch ck editor components with ck editor html components in tutorial parts #21
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
base: DEV-2748-add-new-part
Are you sure you want to change the base?
Conversation
| 
 | 
        
          
                ...database/migrations/2025.15.09T12.00.00.substitute-ckeditor-parts-with-ckeditorhtml-parts.js
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                ...database/migrations/2025.15.09T12.00.00.substitute-ckeditor-parts-with-ckeditorhtml-parts.js
              
                Outdated
          
            Show resolved
            Hide resolved
        
      Co-authored-by: marcobottaro <39835990+marcobottaro@users.noreply.github.com>
…tute-ckeditor-parts-with-ckeditorhtml-parts.js Co-authored-by: marcobottaro <39835990+marcobottaro@users.noreply.github.com>
| Jira Pull Request LinkThis Pull Request refers to the following Jira issue DEV-2750  | 
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.
We should use English for comments in the repository 😉
| // La creazione della tabella è fatta una sola volta, quindi può rimanere qui. | ||
| // Nota: lo script originale mischiava `knex` e `strapi.db.connection`. | ||
| // Per coerenza, usiamo `knex` anche qui. | 
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.
Translate comments
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.
I think the date in the name of the file should be formatted "YYYY.MM.DD..." by standard ISO 8601
| const tableExists = await knex.schema.hasTable('tutorials_components'); | ||
|  | ||
| if (!tableExists) { | ||
| console.log("'tutorials_components' table does not exist. Skipping migration."); | 
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.
We could use console.warn here
This PR depends on #19
List of Changes
Add a migration to switch ck editor components with ck editor html components in tutorial parts
Motivation and Context
How Has This Been Tested?
on localhost
Screenshots (if appropriate):
Types of changes
Checklist: