Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console status #88

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d7c4a9a
Printers: fix duration time unit
mrtnzlml Mar 13, 2017
2446516
Merge pull request #66 from mrtnzlml/fix-timing-output
hrach Mar 13, 2017
d65a60a
fix lock released after it cannot be acquired
Mikulas Jul 27, 2017
b32fc33
Merge pull request #74 from Mikulas/pr/fix-lock-release-bug
hrach Jul 28, 2017
70d72f8
PgSqlDriver: used advisory locks
JanTvrdik Jul 28, 2017
9253a5d
BaseDriver: fixed delimiter pattern in loadFile() [closes #73]
JanTvrdik Jul 28, 2017
6bf5bd3
MigrationsExtensions: add command only when symfony/console exist
JanTvrdik Jul 28, 2017
8849c05
fixed escapeInt not returning string in some dbal adapters
JanTvrdik Jul 28, 2017
b780e8d
BaseDriver: minor speedup of loadFile()
JanTvrdik Aug 1, 2017
ba924c4
CreateCommand: fixed error when target directory does not exist
JanTvrdik Aug 1, 2017
b34ab7b
doc: added sort notice (#76)
adaamz Aug 30, 2017
568dcdc
added experimental NextrasMigrationsBundle for Symfony
JanTvrdik Oct 2, 2017
565edb8
PgSqlDriver: fetch id of inserted migration with RETURNING clause
JanTvrdik Oct 2, 2017
9ad69f1
{My,Pg}SqlDriver: do not connect to database in constructor
JanTvrdik Oct 2, 2017
1965a4c
SymfonyBundle: add support for referencing services from php_params
JanTvrdik Oct 26, 2017
40073be
composer.json: sort symfony dependencies
JanTvrdik Oct 26, 2017
77fc537
MigrationsExtension: add default value for migrations directory
JanTvrdik Nov 25, 2017
c32fa2b
Finder: ignore missing directories [closes #46]
JanTvrdik Nov 25, 2017
41a5f19
SymfonyBundle: fix using deprecated cannotBeEmpty()
ondraondra81 Jan 3, 2018
31f6ecb
Revert "MigrationsExtension: add default value for migrations directory"
JanTvrdik Jan 22, 2018
a6fa7fa
CreateCommand: improve exception message
mabar Jan 6, 2018
fb42cef
MigrationsExtension: refactoring to support group configuration (#81)
JanTvrdik Jan 22, 2018
11e48e6
add IMigrationGroupsProvider
JanTvrdik Jan 22, 2018
87f5d43
MySqlDriver: set names to utf8mb4 instead of utf8
JanTvrdik Jan 23, 2018
cc1d7f2
SymfonyConsole: support lazy loading of commands
JanTvrdik Jan 25, 2018
314f64d
Console: add migrations:status command
ondraondra81 Sep 19, 2018
aac74b5
Merge branch 'master' of https://github.com/nextras/migrations into c…
ondraondra81 Sep 19, 2018
dcb807f
Console: fix typo
ondraondra81 Sep 19, 2018
1a8b551
Code formating
ondraondra81 Sep 19, 2018
5a25b95
Code formating
ondraondra81 Sep 19, 2018
ceaeea7
Merge branch 'console_status' of github.com:ondraondra81/migrations i…
ondraondra81 Sep 19, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
"nette/utils": "~2.3",
"nextras/dbal": "~1.0 | ~2.0",
"mockery/mockery": "~0.9",
"symfony/config": "~2.6 | ~3.0",
"symfony/console": "~2.6 | ~3.0",
"symfony/dependency-injection": "~2.6 | ~3.0",
"symfony/http-kernel": "~2.6 | ~3.0",
"ext-openssl": "*"
},
"suggest": {
Expand Down
1 change: 1 addition & 0 deletions doc/default.texy
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ Open the script in your browser (`HttpController`) or in a terminal (`ConsoleCon
Organizing Migrations
=====================

Migrations are executed in alphabetical order (by filename), e.g. `structures/2015-03-17-aaa.sql` is executed before `dummy-data/2015-03-17-zzz.sql`.
The following structure is recommended and used by Symfony Console Commands by default:

/--
Expand Down
2 changes: 1 addition & 1 deletion src/Bridges/Dibi/Dibi2Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function escapeString($value)

public function escapeInt($value)
{
return (int) $value;
return (string) (int) $value;
}


Expand Down
2 changes: 1 addition & 1 deletion src/Bridges/Dibi/Dibi3Adapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function escapeString($value)

public function escapeInt($value)
{
return (int) $value;
return (string) (int) $value;
}


Expand Down
22 changes: 22 additions & 0 deletions src/Bridges/NetteDI/IMigrationGroupsProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

/**
* This file is part of the Nextras community extensions of Nette Framework
*
* @license New BSD License
* @link https://github.com/nextras/migrations
*/

namespace Nextras\Migrations\Bridges\NetteDI;

use Nextras;
use Nextras\Migrations\Entities\Group;


interface IMigrationGroupsProvider
{
/**
* @return Group[]
*/
public function getMigrationGroups(): array;
}
Loading