-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#14488] - WIP to figure out why the column map does not map properly…
… properties
- Loading branch information
Showing
7 changed files
with
212 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Phalcon Framework. | ||
* | ||
* (c) Phalcon Team <team@phalcon.io> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.md | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Test\Fixtures\Migrations; | ||
|
||
use Phalcon\Db\Adapter\AdapterInterface; | ||
|
||
class ObjectsMigration | ||
{ | ||
public function __invoke(AdapterInterface $db) | ||
{ | ||
$sql = <<<SQL | ||
drop table if exists objects | ||
SQL; | ||
$db->execute($sql); | ||
|
||
$sql = <<<SQL | ||
create table objects | ||
( | ||
obj_id int(10) auto_increment primary key, | ||
obj_name varchar(100) not null, | ||
obj_type tinyint(3) unsigned not null | ||
); | ||
SQL; | ||
$db->execute($sql); | ||
|
||
$sql = <<<SQL | ||
insert into objects ( obj_id, obj_name, obj_type ) | ||
values (1, 'random data', 1); | ||
SQL; | ||
$db->execute($sql); | ||
|
||
$sql = <<<SQL | ||
drop table if exists stuff | ||
SQL; | ||
$db->execute($sql); | ||
|
||
$sql = <<<SQL | ||
create table stuff | ||
( | ||
stf_id int(10) auto_increment primary key, | ||
stf_name varchar(100) not null, | ||
stf_type tinyint(3) unsigned not null | ||
); | ||
SQL; | ||
$db->execute($sql); | ||
|
||
$sql = <<<SQL | ||
insert into stuff ( stf_id, stf_name, stf_type ) | ||
values (2, 'stuff data', 1); | ||
SQL; | ||
$db->execute($sql); | ||
} | ||
} |
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,21 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Phalcon Framework. | ||
* | ||
* (c) Phalcon Team <team@phalcon.io> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.md | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Test\Models; | ||
|
||
use Phalcon\Mvc\Model; | ||
|
||
class Objects extends Model | ||
{ | ||
public $obj_id; | ||
public $obj_name; | ||
public $obj_type; | ||
} |
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,21 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of the Phalcon Framework. | ||
* | ||
* (c) Phalcon Team <team@phalcon.io> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.md | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Phalcon\Test\Models; | ||
|
||
use Phalcon\Mvc\Model; | ||
|
||
class Stuff extends Model | ||
{ | ||
public $stf_id; | ||
public $stf_name; | ||
public $stf_type; | ||
} |
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