Commit 18087853 authored by Stephane Crozat's avatar Stephane Crozat
Browse files

Changement de fonction de génération des uuid

parent c8cf5b3f
......@@ -11,6 +11,6 @@ psql -d apisub -f "$SQL/apisub_data.sql"
psql -d apisub -c "\copy student (utclogin, level) FROM '$SQL/../data/students.csv' WITH CSV DELIMITER ','"
psql -d apisub -f "$SQL/apisub_views.sql"
psql -d apisub -c "GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO apisub"
psql -d apisub -c 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp"'
psql -d apisub -c 'CREATE EXTENSION IF NOT EXISTS "pgcrypto"'
# psql -d apisub -f "$SQL/apisub_dataset.sql"
......@@ -36,7 +36,7 @@
<xsl:template match="sc:item" mode="api">
<xsl:param name="code"/>
<xsl:variable name="id">uuid_generate_v4()</xsl:variable>
<xsl:variable name="id">gen_random_uuid()</xsl:variable>
<xsl:variable name="begin">
<xsl:value-of select="substring(.//sp:info[of:block/of:blockM/sp:title='Période']//sc:para[1],1,5)"/>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment