You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Run containers with docker-compose, unfortunatelly I can't share the initial database sql because it has sensitive data
make run
propel migrate
The SQL statement is not working but if I run it in a SQL terminal it runs normaly.
publicfunction preUp(MigrationManager$manager)
{
$pdo = $manager->getAdapterConnection('default');
$tabela_records = TabelaQuery::create()->find();
echo "Removendo patentes de fisioterapeutas (tabela)...\n";
// Removendo patentes e títulos do nome do fisioterapeuta na lista de tabelas$sql = "UPDATE tabela SET fisioterapeuta=TRIM(REGEXP_REPLACE(fisioterapeuta, 'GM\\s(\\(S\\)\\s)?|Ten\\.\\s|\\s\\(Estagiári.\\)|CC\\s(\\(S\\)\\s)?|SO\\s|Dr.?\\.\\s', '')) WHERE fisioterapeuta IS NOT NULL;";
$stmt = $pdo->prepare($sql);
$stmt->execute();
And the worse part it fails silently and you won't see any warning or error
The text was updated successfully, but these errors were encountered:
OS: MacOS Ventura.
Project (docker ready): https://github.com/filiperochalopes/cadastro-procedimentos-fisioterapia/tree/develop.
.
To reproduce:
# Run containers with docker-compose, unfortunatelly I can't share the initial database sql because it has sensitive data make run propel migrate
The SQL statement is not working but if I run it in a SQL terminal it runs normaly.
And the worse part it fails silently and you won't see any warning or error
The text was updated successfully, but these errors were encountered: