Nextras migrations generuje prázdné sql
- sproust
- Člen | 1
Ahoj,
snažím se rozchodit nextras migrations, ale migrations:create mi vždy
generuje prázdný .sql.
common.neon
extensions:
console: Contributte\Console\DI\ConsoleExtension(%consoleMode%)
migrations: Nextras\Migrations\Bridges\NetteDI\MigrationsExtension
migrations:
dir: %appDir%/../migrations
driver: mysql
dbal: nette
composer.json
"require": {
"php": ">=7.4",
"nette/application": "^3.1",
"nette/bootstrap": "^3.1",
"nette/caching": "^3.1",
"nette/database": "^3.1",
"nette/di": "^3.0",
"nette/finder": "^2.5",
"nette/forms": "^3.1",
"nette/http": "^3.1",
"nette/mail": "^3.1",
"nette/robot-loader": "^3.3",
"nette/safe-stream": "^2.4",
"nette/security": "^3.1",
"nette/utils": "^3.2",
"latte/latte": "^2.9",
"tracy/tracy": "^2.8",
"contributte/console": "^0.9.1",
"nextras/migrations": "^3.1"
}
bin/console
#!/usr/bin/env php
<?php declare(strict_types = 1);
require __DIR__ . '/../vendor/autoload.php';
exit(App\Bootstrap::boot()
->createContainer()
->getByType(Contributte\Console\Application::class)
->run());
K databázi jsem připojený, jsou tam tabulky i data. Migrations:continue dokonce vytvořilo tabulku migrations do oné databáze.
Moc díky
- stpnkcrk
- Generous Backer | 190
To je ocekavane chovani. Nextras Migrations neumi, krome Doctrine, nativne generovat diffy.
Sekce Writing Migrations v dokumentaci – https://nextras.org/…ns/docs/3.2/#…