myaac/system/bin/dump_database.php
slawkens 998e15cabd Dump command
Doesnt work yet, just as notice
2023-11-11 14:43:15 +01:00

16 lines
371 B
PHP

<?php
if(PHP_SAPI !== 'cli') {
echo 'This script can be run only in command line mode.';
exit(1);
}
require_once __DIR__ . '/../../common.php';
require_once SYSTEM . 'functions.php';
require_once SYSTEM . 'init.php';
$test = new \Illuminate\Database\Schema\MySqlSchemaState($eloquentConnection);
$test->dump($eloquentConnection, BASE . 'dump.sql');
echo 'Dumped.';