From 40644c80d239b33735ce449bd0dad670d0de0992 Mon Sep 17 00:00:00 2001 From: zhuxu Date: Fri, 20 Dec 2024 11:45:48 +0800 Subject: [PATCH] update words --- ...cmotor_bay.sql => ddl_5_asyncmotor_bay.sql | 20 +++++++++---------- ..._bus_stable.sql => ddl_8_bus_stability.sql | 0 2 files changed, 10 insertions(+), 10 deletions(-) rename ddl_5_syncmotor_bay.sql => ddl_5_asyncmotor_bay.sql (81%) rename ddl_8_bus_stable.sql => ddl_8_bus_stability.sql (100%) diff --git a/ddl_5_syncmotor_bay.sql b/ddl_5_asyncmotor_bay.sql similarity index 81% rename from ddl_5_syncmotor_bay.sql rename to ddl_5_asyncmotor_bay.sql index c74df0e..6ade017 100644 --- a/ddl_5_syncmotor_bay.sql +++ b/ddl_5_asyncmotor_bay.sql @@ -1,8 +1,8 @@ --- Table: public.syncmotor_bay +-- Table: public.asyncmotor_bay -- DROP -DROP TABLE IF EXISTS public.syncmotor_bay; -DROP SEQUENCE IF EXISTS public.syncmotor_bay_id_seq; +DROP TABLE IF EXISTS public.asyncmotor_bay; +DROP SEQUENCE IF EXISTS public.asyncmotor_bay_id_seq; DROP TYPE IF EXISTS public.varible; -- CREATE @@ -16,11 +16,11 @@ CREATE TYPE public.varible AS ALTER TYPE public.varible OWNER TO postgres; -CREATE SEQUENCE IF NOT EXISTS public.syncmotor_bay_id_seq; +CREATE SEQUENCE IF NOT EXISTS public.asyncmotor_bay_id_seq; -CREATE TABLE IF NOT EXISTS public.syncmotor_bay +CREATE TABLE IF NOT EXISTS public.asyncmotor_bay ( - id integer NOT NULL DEFAULT nextval('syncmotor_bay_id_seq'::regclass), + id integer NOT NULL DEFAULT nextval('asyncmotor_bay_id_seq'::regclass), component_id integer NOT NULL, dev_protect jsonb NOT NULL DEFAULT '{}'::jsonb, @@ -90,8 +90,8 @@ CREATE TABLE IF NOT EXISTS public.syncmotor_bay op integer NOT NULL DEFAULT '-1'::integer, ts timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP, - CONSTRAINT syncmotor_bay_id_PrimaryKey PRIMARY KEY (id), - CONSTRAINT syncmotor_bay_ForeignKey_component_id FOREIGN KEY (component_id) + CONSTRAINT asyncmotor_bay_id_PrimaryKey PRIMARY KEY (id), + CONSTRAINT asyncmotor_bay_ForeignKey_component_id FOREIGN KEY (component_id) REFERENCES public.component (id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION @@ -99,9 +99,9 @@ CREATE TABLE IF NOT EXISTS public.syncmotor_bay TABLESPACE pg_default; -ALTER TABLE IF EXISTS public.syncmotor_bay +ALTER TABLE IF EXISTS public.asyncmotor_bay OWNER to postgres; -COMMENT ON TABLE public.syncmotor_bay +COMMENT ON TABLE public.asyncmotor_bay IS '存储异步电动机的间隔信息'; diff --git a/ddl_8_bus_stable.sql b/ddl_8_bus_stability.sql similarity index 100% rename from ddl_8_bus_stable.sql rename to ddl_8_bus_stability.sql