This file contains hidden or 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
--- /dev/null | |
+++ ../src/Sylius/Bundle/CoreBundle/Migrations/Version20240315112656.php | |
@@ -48,22 +48,50 @@ | |
{ | |
if ($table === 'sylius_address_log_entries') { | |
$this->addSql(sprintf('ALTER TABLE %s CHANGE %s %s JSON DEFAULT NULL', $table, $dataColumn, $dataColumn)); | |
+ | |
+ $stmt = <<<SQL | |
+ UPDATE $table | |
+ SET $dataColumn = REGEXP_REPLACE( |
This file contains hidden or 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
<?php | |
namespace Jackalope\Transport\DoctrineDBAL; | |
class Client extends BaseTransport implements QueryTransport, WritingInterface, WorkspaceManagementInterface, NodeTypeManagementInterface, TransactionInterface | |
{ | |
// Make this a public static array to be accessible outside the class | |
public static array $referenceTables = [ | |
PropertyType::REFERENCE => 'phpcr_nodes_references', | |
PropertyType::WEAKREFERENCE => 'phpcr_nodes_weakreferences', | |
]; |
This file contains hidden or 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
import re | |
import os | |
import sys | |
DEBUG = False | |
# Printing the usage of the program | |
if len(sys.argv) == 1: | |
print( | |
f'''Usage: python3 {sys.argv[0]} |