init depot renew

This commit is contained in:
2026-09-22 11:58:57 +02:00
commit e9fa6a7309
205 changed files with 39721 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
sql = '''
CREATE TABLE IF NOT EXISTS sites.hist_id_site (
id serial4 NOT NULL,
id_site_old varchar(10) NOT NULL,
id_site_new varchar(10) NOT NULL,
"date" timestamp NOT NULL DEFAULT NOW(),
CONSTRAINT hist_id_site_pkey PRIMARY KEY (id),
CONSTRAINT hist_id_site_un UNIQUE (id_site_old, id_site_new)
);'''
with con.begin() as cnx:
cnx.execute(sql)