forked from phalcon/phalcon-devtools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request phalcon#1095 from phalcon/3.2.x
3.2.4
- Loading branch information
Showing
30 changed files
with
587 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title>Phalcon PHP Framework</title> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<h1>Not found :(</h1> | ||
<em>This page is located in views/404.volt</em> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | ||
<title>Phalcon PHP Framework</title> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
|
||
<div class="page-header"> | ||
<h1>Congratulations!</h1> | ||
</div> | ||
|
||
<p>You're now flying with Phalcon. Great things are about to happen!</p> | ||
<p>This page is located at <code>views/index.volt</code></p> | ||
</div> | ||
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> | ||
<!-- Latest compiled and minified JavaScript --> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
100 changes: 100 additions & 0 deletions
100
tests/_data/console/app/migrations/1.0.0/test_migrations.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
<?php | ||
|
||
use Phalcon\Db\Column; | ||
use Phalcon\Db\Index; | ||
use Phalcon\Db\Reference; | ||
use Phalcon\Mvc\Model\Migration; | ||
|
||
/** | ||
* Class TestMigrationsMigration_100 | ||
*/ | ||
class TestMigrationsMigration_100 extends Migration | ||
{ | ||
/** | ||
* Define the table structure | ||
* | ||
* @return void | ||
*/ | ||
public function morph() | ||
{ | ||
$this->morphTable('test_migrations', [ | ||
'columns' => [ | ||
new Column( | ||
'id', | ||
[ | ||
'type' => Column::TYPE_INTEGER, | ||
'unsigned' => true, | ||
'notNull' => true, | ||
'autoIncrement' => true, | ||
'size' => 10, | ||
'first' => true | ||
] | ||
), | ||
new Column( | ||
'name', | ||
[ | ||
'type' => Column::TYPE_VARCHAR, | ||
'notNull' => true, | ||
'size' => 45, | ||
'after' => 'id' | ||
] | ||
), | ||
new Column( | ||
'created_at', | ||
[ | ||
'type' => Column::TYPE_DATETIME, | ||
'notNull' => true, | ||
'size' => 1, | ||
'after' => 'name' | ||
] | ||
), | ||
new Column( | ||
'updated_at', | ||
[ | ||
'type' => Column::TYPE_DATETIME, | ||
'notNull' => true, | ||
'size' => 1, | ||
'after' => 'created_at' | ||
] | ||
) | ||
], | ||
'indexes' => [ | ||
new Index('PRIMARY', ['id'], 'PRIMARY') | ||
], | ||
'options' => [ | ||
'TABLE_TYPE' => 'BASE TABLE', | ||
'AUTO_INCREMENT' => '2', | ||
'ENGINE' => 'InnoDB', | ||
'TABLE_COLLATION' => 'utf8_general_ci' | ||
], | ||
] | ||
); | ||
} | ||
|
||
/** | ||
* Run the migrations | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
$this->batchInsert('test_migrations', [ | ||
'id', | ||
'name', | ||
'created_at', | ||
'updated_at' | ||
] | ||
); | ||
} | ||
|
||
/** | ||
* Reverse the migrations | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
$this->batchDelete('test_migrations'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1,test1,"2017-08-29 13:05:41","2017-08-29 13:05:41" |
Oops, something went wrong.