Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
2e1cd3db
Unverified
Commit
2e1cd3db
authored
May 15, 2023
by
John Wang
Committed by
GitHub
May 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: uuid-ossp extension create failed in pgsql (#10)
parent
19eaf271
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
3 deletions
+4
-3
64b051264f32_init.py
api/migrations/versions/64b051264f32_init.py
+4
-0
docker-compose.middleware.yaml
docker/docker-compose.middleware.yaml
+0
-1
docker-compose.yaml
docker/docker-compose.yaml
+0
-1
init_extension.sh
docker/volumes/db/scripts/init_extension.sh
+0
-1
No files found.
api/migrations/versions/64b051264f32_init.py
View file @
2e1cd3db
...
...
@@ -18,6 +18,8 @@ depends_on = None
def
upgrade
():
# ### commands auto generated by Alembic - please adjust! ###
op
.
execute
(
'CREATE EXTENSION IF NOT EXISTS "uuid-ossp";'
)
op
.
create_table
(
'account_integrates'
,
sa
.
Column
(
'id'
,
postgresql
.
UUID
(),
server_default
=
sa
.
text
(
'uuid_generate_v4()'
),
nullable
=
False
),
sa
.
Column
(
'account_id'
,
postgresql
.
UUID
(),
nullable
=
False
),
...
...
@@ -790,4 +792,6 @@ def downgrade():
op
.
drop_table
(
'accounts'
)
op
.
drop_table
(
'account_integrates'
)
op
.
execute
(
'DROP EXTENSION IF EXISTS "uuid-ossp";'
)
# ### end Alembic commands ###
docker/docker-compose.middleware.yaml
View file @
2e1cd3db
...
...
@@ -13,7 +13,6 @@ services:
PGDATA
:
/var/lib/postgresql/data/pgdata
volumes
:
-
./volumes/db/data:/var/lib/postgresql/data
-
./volumes/db/scripts:/docker-entrypoint-initdb.d/
ports
:
-
"
5432:5432"
...
...
docker/docker-compose.yaml
View file @
2e1cd3db
...
...
@@ -163,7 +163,6 @@ services:
PGDATA
:
/var/lib/postgresql/data/pgdata
volumes
:
-
./volumes/db/data:/var/lib/postgresql/data
-
./volumes/db/scripts:/docker-entrypoint-initdb.d/
ports
:
-
"
5432:5432"
...
...
docker/volumes/db/scripts/init_extension.sh
View file @
2e1cd3db
psql
-U
postgres
-d
dify
-c
'CREATE EXTENSION IF NOT EXISTS "uuid-ossp";'
\ No newline at end of file
Write
Preview
Markdown
is supported
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