Skip to content

Commit

Permalink
Merge pull request #591 from atk4/feature/fix-demo-database
Browse files Browse the repository at this point in the history
fix demo database
  • Loading branch information
romaninsh committed Nov 12, 2018
2 parents 5a9f0d5 + d64dc72 commit fbd95ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demos/atk4.sql
Expand Up @@ -23,7 +23,7 @@ DROP TABLE IF EXISTS `country`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `country` (
`id` int(11) NOT NULL,
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
Expand Down
2 changes: 1 addition & 1 deletion demos/database.php
Expand Up @@ -29,7 +29,7 @@ public function init()
$this->addField('iso', ['caption' => 'ISO', 'required' => true, 'type' => 'string']);
$this->addField('iso3', ['caption' => 'ISO3', 'required' => true, 'type' => 'string']);
$this->addField('numcode', ['caption' => 'ISO Numeric Code', 'type' => 'number', 'required' => true]);
$this->addField('phonecode', ['caption' => 'Phone Prefix', 'type' => 'number']);
$this->addField('phonecode', ['caption' => 'Phone Prefix', 'type' => 'number', 'required' => true]);

$this->addHook('beforeSave', function ($m) {
if (!$m['sys_name']) {
Expand Down

0 comments on commit fbd95ae

Please sign in to comment.