mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 06:23:34 -07:00
Fix user group seed data
This commit is contained in:
parent
e8d7b1f177
commit
a83bd640c0
1 changed files with 3 additions and 1 deletions
|
@ -270,6 +270,7 @@ def upgrade():
|
||||||
])
|
])
|
||||||
op.bulk_insert(groups_table, [
|
op.bulk_insert(groups_table, [
|
||||||
{
|
{
|
||||||
|
"id": 1,
|
||||||
"name": settings.DEFAULT_GROUP,
|
"name": settings.DEFAULT_GROUP,
|
||||||
"webhook_enable": False,
|
"webhook_enable": False,
|
||||||
"webhook_time": "00:00",
|
"webhook_time": "00:00",
|
||||||
|
@ -277,10 +278,11 @@ def upgrade():
|
||||||
])
|
])
|
||||||
op.bulk_insert(users_table, [
|
op.bulk_insert(users_table, [
|
||||||
{
|
{
|
||||||
|
"id": 1,
|
||||||
"full_name": "Change Me",
|
"full_name": "Change Me",
|
||||||
"email": settings.DEFAULT_EMAIL,
|
"email": settings.DEFAULT_EMAIL,
|
||||||
"password": get_password_hash(settings.DEFAULT_PASSWORD),
|
"password": get_password_hash(settings.DEFAULT_PASSWORD),
|
||||||
"group": settings.DEFAULT_GROUP,
|
"group_id": 1,
|
||||||
"admin": True,
|
"admin": True,
|
||||||
},
|
},
|
||||||
])
|
])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue