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

fix demo database #591

Merged
merged 1 commit into from Nov 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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