feat: 切换到 PostgreSQL 数据库 (cssc) + 示例数据已导入
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -84,8 +84,12 @@ WSGI_APPLICATION = 'city_manual.wsgi.application'
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': BASE_DIR / 'db.sqlite3',
|
||||
'ENGINE': 'django.db.backends.postgresql',
|
||||
'NAME': 'cssc',
|
||||
'USER': 'coder',
|
||||
'PASSWORD': '825670wl',
|
||||
'HOST': '10.2.0.100',
|
||||
'PORT': '5432',
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4
city-manual/backend/migrate_pg.sh
Normal file
4
city-manual/backend/migrate_pg.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
cd /root/.openclaw/workspace/city-manual/backend
|
||||
rm -f db.sqlite3 db.sqlite3-journal
|
||||
python3 manage.py migrate
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user