I have made a database backup with heidisql. When I try to restore the backup, I get A syntax error.
The query that heidiSQL generated for me:
CREATE TABLE IF NOT EXISTS "age_categories" (
"id" INTEGER NOT NULL DEFAULT nextval('age_categories_id_seq'::regclass) COMMENT E'',
"created_at" TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL COMMENT E'',
"updated_at" TIMESTAMP(0) WITHOUT TIME ZONE NOT NULL COMMENT E'',
"min_age" INTEGER NOT NULL DEFAULT 0 COMMENT E'',
"max_age" INTEGER NOT NULL DEFAULT 0 COMMENT E'',
PRIMARY KEY ("id")
);
The error I get when I run the query:
ERROR: syntax error at or near "COMMENT"
LINE 3: ...EFAULT
nextval('age_categories_id_seq'::regclass) COMMENT
E'... ^
I dont understand what exactly is going wrong here, any ideas?