Nextras\Migrations generovanie suboru a diff cez HttpController

duskohu
Člen | 778
+
0
-

Caute pouzivam Nextras\Migrations 3.1.0-rc3 v konzole generujem subor a sucasne ho naplnam pomocou:
php index.php migrations:create structures generated --diff

nasadil som si aj HttpController a chcel by som to iste vygenerovat na hosingu pomocou Init SQL > Run structures, ale takto to nefunguje, nevygeneruje subor ani do neho neda diff, Vygeneruje len sql na vlozenie existujucich migraci do sql.

Da sa to nejako riesit tak aby som vedel na hostingu vygenerovat subor a vlozil do neho diff?

// Vygeneruje len tento sql
CREATE TABLE IF NOT EXISTS `migrations` (
	`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
	`group` varchar(100) NOT NULL,
	`file` varchar(100) NOT NULL,
	`checksum` char(32) NOT NULL,
	`executed` datetime NOT NULL,
	`ready` tinyint(1) NOT NULL DEFAULT 0,
	PRIMARY KEY (`id`),
	UNIQUE KEY `type_file` (`group`, `file`)
) ENGINE=InnoDB;
INSERT INTO `migrations` (`group`, `file`, `checksum`, `executed`, `ready`) VALUES ('structures', '2017-05-29-093250-init.sql', '80c237c2f6adddd92b0bb121ba5bcfd8', '2017-05-31 15:17:35', '1');
INSERT INTO `migrations` (`group`, `file`, `checksum`, `executed`, `ready`) VALUES ('structures', '2017-05-30-204904-base-post.sql', 'd41d8cd98f00b204e9800998ecf8427e', '2017-05-31 15:17:35', '1');
David Matějka
Moderator | 6445
+
0
-

init slouzi na neco jineho, http controller generovani migraci nepodporuje – a ani si nedokazu predstavit duvod, proc by to delal.

ale vzdycky muzes rucne vytvorit soubor v migrations/structures