fix(Item): id should be of type serial
This commit is contained in:
parent
0fe680ef4a
commit
e0d9989d74
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2010-2021, Tomasz Sowa
|
* Copyright (c) 2010-2022, Tomasz Sowa
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -208,6 +208,7 @@ bool Item::do_migration_to_1()
|
||||||
{
|
{
|
||||||
const char * str = R"sql(
|
const char * str = R"sql(
|
||||||
CREATE TABLE core.item (
|
CREATE TABLE core.item (
|
||||||
|
id serial,
|
||||||
user_id integer,
|
user_id integer,
|
||||||
group_id integer,
|
group_id integer,
|
||||||
privileges integer,
|
privileges integer,
|
||||||
|
@ -215,7 +216,6 @@ bool Item::do_migration_to_1()
|
||||||
date_modification timestamp without time zone,
|
date_modification timestamp without time zone,
|
||||||
parent_id bigint,
|
parent_id bigint,
|
||||||
type smallint,
|
type smallint,
|
||||||
id integer NOT NULL,
|
|
||||||
url character varying(255),
|
url character varying(255),
|
||||||
content_id bigint,
|
content_id bigint,
|
||||||
subject character varying(255),
|
subject character varying(255),
|
||||||
|
|
Loading…
Reference in New Issue