18 lines
394 B
SQL
Executable File
18 lines
394 B
SQL
Executable File
|
|
DROP TABLE IF EXISTS local_databases;
|
|
CREATE TABLE local_databases (
|
|
|
|
id serial,
|
|
name text,
|
|
db_name text,
|
|
begin_time bigint,
|
|
end_time bigint
|
|
|
|
);
|
|
|
|
GRANT INSERT, UPDATE, DELETE, SELECT ON local_databases TO ets_ro;
|
|
GRANT USAGE,SELECT ON local_databases_id_seq TO ets_ro;
|
|
|
|
--insert into local_databases (name, db_name, begin_time, end_time) values ( 'Test1', 'lts_ets', 1000, 2000);
|
|
|