Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
apisub
Commits
18087853
Commit
18087853
authored
Apr 10, 2019
by
Stephane Crozat
Browse files
Changement de fonction de génération des uuid
parent
c8cf5b3f
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/db_init.sh
View file @
18087853
...
...
@@ -11,6 +11,6 @@ psql -d apisub -f "$SQL/apisub_data.sql"
psql
-d
apisub
-c
"
\c
opy 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"
tmp/export/export_sql.xsl
View file @
18087853
...
...
@@ -36,7 +36,7 @@
<xsl:template
match=
"sc:item"
mode=
"api"
>
<xsl:param
name=
"code"
/>
<xsl:variable
name=
"id"
>
uuid_
gen
e
ra
te_v4
()
</xsl:variable>
<xsl:variable
name=
"id"
>
gen
_
ra
ndom_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)"
/>
</xsl:variable>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment