Hello, I tried to copy table from postgres db to database on cockroachdb. when I tried to create table, I got error as listed below. any help or information would be greatly appreciated.
postgres=# CREATE TABLE tr(
postgres(# uid integer NOT NULL,
postgres(# status character varying(20) NOT NULL,
postgres(# v_by character varying(3) NOT NULL,
postgres(# t_id character varying(100) NOT NULL,
postgres(# s_error_msg character varying(800),
postgres(# cdate timestamp without time zone DEFAULT LOCALTIMESTAMP NOT NULL,
postgres(# lupdated timestamp without time zone DEFAULT LOCALTIMESTAMP NOT NULL,
postgres(# PRIMARY KEY(uid, t_id)
postgres(# );
ERROR: at or near "localtimestamp": syntax error
DETAIL: source SQL:
CREATE TABLE tr(
uid integer NOT NULL,
status character varying(20) NOT NULL,
v_by character varying(3) NOT NULL,
t_id character varying(100) NOT NULL,
s_error_msg character varying(800),
cdate timestamp without time zone DEFAULT LOCALTIMESTAMP NOT NULL,
^
HINT: try \h CREATE TABLE