删除无用的创建数据表
This commit is contained in:
parent
b7b077770d
commit
f99d64a376
|
@ -874,29 +874,7 @@ if not exists(select * from information_schema.tables
|
|||
GRANT SELECT ON TABLE recipe_history_data TO postgres;
|
||||
end if;
|
||||
------------------------------------------------------------------------------------------------
|
||||
--
|
||||
if not exists(select * from information_schema.tables
|
||||
where
|
||||
table_catalog = CURRENT_CATALOG and table_schema = CURRENT_SCHEMA
|
||||
and table_name = 'recipe_history_set_device') then
|
||||
|
||||
CREATE TABLE recipe_history_set_device
|
||||
(
|
||||
"guid" text,
|
||||
"property" text,
|
||||
"display" text,
|
||||
"unit" text,
|
||||
"pm" text,
|
||||
CONSTRAINT recipe_history_set_device PRIMARY KEY ("guid" )
|
||||
)
|
||||
WITH (
|
||||
OIDS=FALSE
|
||||
);
|
||||
ALTER TABLE recipe_history_set_device
|
||||
OWNER TO postgres;
|
||||
GRANT SELECT ON TABLE recipe_history_set_device TO postgres;
|
||||
end if;
|
||||
------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
end;
|
||||
|
|
Loading…
Reference in New Issue