mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-06-27 16:57:01 +00:00
pending_changes migration
This commit is contained in:
parent
6a2648ddf7
commit
d5edc5bb2e
@ -0,0 +1,18 @@
|
||||
# Generated by Django 5.0.1 on 2024-02-16 17:15
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wireguard', '0004_wireguardinstance_public_key'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='wireguardinstance',
|
||||
name='pending_changes',
|
||||
field=models.BooleanField(default=True),
|
||||
),
|
||||
]
|
@ -41,6 +41,7 @@ class WireGuardInstance(models.Model):
|
||||
post_up = models.TextField(blank=True, null=True)
|
||||
post_down = models.TextField(blank=True, null=True)
|
||||
persistent_keepalive = models.IntegerField(default=25)
|
||||
pending_changes = models.BooleanField(default=True)
|
||||
|
||||
created = models.DateTimeField(auto_now_add=True)
|
||||
updated = models.DateTimeField(auto_now=True)
|
||||
|
@ -77,7 +77,7 @@ WSGI_APPLICATION = 'wireguard_webadmin.wsgi.application'
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': '/etc/wireguard/wireguard-webadmin.sqlite3',
|
||||
'NAME': '/etc/wireguard/wireguard-webadmin-db.sqlite3',
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user