删除无用的创建数据表

This commit is contained in:
Han Qiang Qiang 2023-12-27 13:03:56 +08:00
parent b7b077770d
commit f99d64a376
1 changed files with 1 additions and 23 deletions

View File

@ -874,29 +874,7 @@ if not exists(select * from information_schema.tables
GRANT SELECT ON TABLE recipe_history_data TO postgres; GRANT SELECT ON TABLE recipe_history_data TO postgres;
end if; 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; end;