Browse Source

fix(Item): id should be of type serial

master
Tomasz Sowa 4 months ago
parent
commit
e0d9989d74
  1. 4
      winixd/models/item.cpp

4
winixd/models/item.cpp

@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2010-2021, Tomasz Sowa
* Copyright (c) 2010-2022, Tomasz Sowa
* All rights reserved.
*
* 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(
CREATE TABLE core.item (
id serial,
user_id integer,
group_id integer,
privileges integer,
@ -215,7 +216,6 @@ bool Item::do_migration_to_1()
date_modification timestamp without time zone,
parent_id bigint,
type smallint,
id integer NOT NULL,
url character varying(255),
content_id bigint,
subject character varying(255),

Loading…
Cancel
Save