We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed2bcf2 commit 2aff202Copy full SHA for 2aff202
1 file changed
migrations/DoctrineMigrations/Version20260315000001.php
@@ -46,7 +46,8 @@ public function up(Schema $schema): void
46
47
public function down(Schema $schema): void
48
{
49
- $this->addSql('UPDATE consent SET attribute = attribute_stable WHERE attribute IS NULL AND attribute_stable IS NOT NULL');
+ $this->warnIf(true, 'This migration is not reversible without deleting all migrated consent hashes.' .
50
+ ' Manually run `DELETE FROM consent WHERE attribute IS NOT NULL` to delete all migrated consent hashes.');
51
$this->addSql('ALTER TABLE consent CHANGE attribute attribute VARCHAR(80) NOT NULL');
52
$this->addSql('ALTER TABLE consent DROP attribute_stable');
53
}
0 commit comments