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

Alter audit trail table to change new_value and old_value to a longblob #293

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eluhr
Copy link
Contributor

@eluhr eluhr commented May 13, 2024

This way we can store much bigger data in the trail table

@eluhr eluhr requested a review from schmunk42 May 13, 2024 11:19
@schmunk42
Copy link
Contributor

Could we just extend one from the other?

@thtmorais
Copy link
Contributor

Hello @schmunk42 and @eluhr ,

I see this PR and has a suggestions, I use this module in my ERP system in Brazil, and I needed modify others migrations because this problem.

My modifications:

$this->alterColumn('audit_data', 'data', 'LONGBLOB');
$this->alterColumn('audit_error', 'message', 'LONGTEXT NOT NULL');
$this->alterColumn('audit_error', 'trace', 'LONGBLOB');
$this->alterColumn('audit_javascript', 'message', 'LONGTEXT NOT NULL');
$this->alterColumn('audit_javascript', 'data', 'LONGBLOB');
$this->alterColumn('audit_mail', 'text', 'LONGBLOB');
$this->alterColumn('audit_mail', 'html', 'LONGBLOB');
$this->alterColumn('audit_mail', 'data', 'LONGBLOB');
$this->alterColumn('audit_trail', 'old_value', 'LONGTEXT');
$this->alterColumn('audit_trail', 'new_value', 'LONGTEXT');
$this->alterColumn('audit_javascript',  'origin',  'LONGTEXT');
$this->alterColumn('audit_entry', 'memory_max', $this->bigInteger());

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.

3 participants