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

Forge class trying to create UNSIGNED integer fields in Postgresql #719

Closed
gustavojm opened this issue Sep 13, 2017 · 1 comment
Closed

Comments

@gustavojm
Copy link
Contributor

$this->forge->addField('last_activity' => array(
			'type' => 'INT',
			'constraint' => 10,
			'unsigned' => true,
			'default' => 0,
            'null' => false,
		));

pg_query(): Query failed: ERROR: syntax error at or near "UNSIGNED"
LINE 5: "last_activity" INT UNSIGNED DEFAULT 0 NOT NULL,

@gustavojm
Copy link
Contributor Author

Fixed by PR #731

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant