-
Notifications
You must be signed in to change notification settings - Fork 629
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
PostgreSQL using sequences issue #853
Comments
Hi @morrigan, Thanks for contributing! CREATE TABLE "public"."images" (
-- NOTE:
-- Without > DEFAULT "nextval('images_id_seq'::regclass)" NOT NULL
"id" BIGSERIAL,
"base64" TEXT
); Or: CREATE TABLE "public"."images" (
-- NOTE:
-- Without > DEFAULT "nextval('images_id_seq'::regclass)"
"id" BIGSERIAL NOT NULL,
"base64" TEXT
); as workaround try to comment
new Column(
'id',
array(
'type' => Column::TYPE_BIGINTEGER,
// 'default' => "nextval('images_id_seq'::regclass)",
'notNull' => true,
'autoIncrement' => true,
'first' => true
)
) |
@sergeyklay Yeah, I don't get the error when default propery is removed and seems like auto incrementation still works :) |
@morrigan I'll fix this ASAP |
@morrigan Could you please check the Phalcon git clone git@github.com:phalcon/cphalcon.git
cd cphalcon
git checkout 3.0.x
zephir fullclean
zephir build |
I've added hotfix in Devtools 3.0.x branch #864 |
Hi,
this is the issue I am facing when running migrations on production. Any tips? Using Phalcon DevTools (2.0.13).
Error:
Generated migration file:
The text was updated successfully, but these errors were encountered: