From patchwork Wed Mar 13 06:56:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: andrepapoti X-Patchwork-Id: 1911541 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=hmdXeZ57; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org (client-ip=2404:9400:2:0:216:3eff:fee1:b9f1; helo=lists.ozlabs.org; envelope-from=patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org; receiver=patchwork.ozlabs.org) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2404:9400:2:0:216:3eff:fee1:b9f1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TvhCm0BpYz1yWn for ; Wed, 13 Mar 2024 17:57:40 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=hmdXeZ57; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4TvhCl6Dpsz3vXQ for ; Wed, 13 Mar 2024 17:57:39 +1100 (AEDT) X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=hmdXeZ57; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::b2a; helo=mail-yb1-xb2a.google.com; envelope-from=andrepapoti@gmail.com; receiver=lists.ozlabs.org) Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4TvhCh6rYpz3039 for ; Wed, 13 Mar 2024 17:57:36 +1100 (AEDT) Received: by mail-yb1-xb2a.google.com with SMTP id 3f1490d57ef6-dcbc00f6c04so4505646276.3 for ; Tue, 12 Mar 2024 23:57:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710313053; x=1710917853; darn=lists.ozlabs.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kJKpgrbR2M83PIrQTCQpLUiM5mEiUia8u1CWoSEezYE=; b=hmdXeZ57vB2hlik9jgHnZcv/7gYLN2HQUYu5+Q8KUfCiWgYj99JpGmw3LZUMxQXICY aD0juOHQV6OdCpVRdY0QDieqpy2LK81KU616MqutDtrDmsfbFhz/Gct5Iqc8k59B++Og 0oDnCbDQYOc/DfdEKsLJSZ6OtDmBn3afhkHLpv3LIbvhCECatAtjhTqRD6tzkKCN7YI2 J5Zga59RB+2iLzTOAGWZUEHIAuSw8oQahIvTXLXW3zHKgcuFyJD+q7YQib6DPmyE8cfi 4EPPHgdZJ77GPa3nroeCx1NxHMm+6IMXHLa/nWE/Vi0UMuH3LrxOaekpKVk/bGnKgqmR Nngw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710313053; x=1710917853; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kJKpgrbR2M83PIrQTCQpLUiM5mEiUia8u1CWoSEezYE=; b=n3cbuqS++QgdieOe8e0zoE0iqFmHMy6Hj9v+C05BQind4eB8rR7Rr6HUG2DUbsfWAS IqmZy0dDe9hhfThLkAwPV/2LvmvtFY9606Y5qVYGPINXEVliZ/9yJspJ2yL7qOZlLfg6 eVw0/UP7FOFyuUQ/u9O7DFJbGLM+b/sifoyOJlu57v4i71GMUj4p4tMcFMYy+fZAvqvY d2ofFiS6qtgG3gw8fiOw6Aqeq4n1KUXRxMnhy18IEF6jqfx5iOBDrllT2Bjd3889Lw1g IJ0zU/EsTvpZol/1wv6h/Omylow26ms9O7V3M7MXmcvRQD1oRWTgCyegZ5dXbaSHD65U FrRA== X-Gm-Message-State: AOJu0Yz3Qs57doDxvmb36PcXrL0luacDtmmLFvzUEQCPDx6TQAz78S6p IoL0MVfHZ8AifId4Y4jx0T9g2qijiYZWoDtzDHPfPOoj0AZYusx1yQwtA4xpGeQ= X-Google-Smtp-Source: AGHT+IEUJgLQYWE8vdUMGsghD/+Ho7VsS6hULADDa72GDCeN9VahrHcNlJlTxQ09BLDlUqdogFLFhA== X-Received: by 2002:a25:8b06:0:b0:dcc:58ed:6ecc with SMTP id i6-20020a258b06000000b00dcc58ed6eccmr1443053ybl.41.1710313053221; Tue, 12 Mar 2024 23:57:33 -0700 (PDT) Received: from localhost.localdomain ([2804:1b3:a4c0:b1de:3ec4:883:9cca:f0a7]) by smtp.gmail.com with ESMTPSA id le21-20020a056a004fd500b006e691787eaesm4843998pfb.34.2024.03.12.23.57.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 23:57:32 -0700 (PDT) From: andrepapoti To: patchwork@lists.ozlabs.org Subject: [PATCH 2/9] migrations: add migration for Note Date: Wed, 13 Mar 2024 03:56:34 -0300 Message-ID: <20240313065642.385843-2-andrepapoti@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240313065642.385843-1-andrepapoti@gmail.com> References: <20240313065642.385843-1-andrepapoti@gmail.com> MIME-Version: 1.0 X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" Signed-off-by: andrepapoti --- patchwork/migrations/0047_note.py | 50 +++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 patchwork/migrations/0047_note.py diff --git a/patchwork/migrations/0047_note.py b/patchwork/migrations/0047_note.py new file mode 100644 index 0000000..d63ec96 --- /dev/null +++ b/patchwork/migrations/0047_note.py @@ -0,0 +1,50 @@ +# Generated by Django 5.0.2 on 2024-03-05 16:27 + +import django.db.models.deletion +import django.utils.timezone +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ('patchwork', '0046_patch_comment_events'), + ] + + operations = [ + migrations.CreateModel( + name='Note', + fields=[ + ( + 'id', + models.AutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name='ID', + ), + ), + ( + 'last_modified', + models.DateTimeField(default=django.utils.timezone.now), + ), + ('content', models.TextField(blank=True)), + ('maintainer_only', models.BooleanField(default=True)), + ( + 'patch', + models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + related_name='note', + related_query_name='note', + to='patchwork.patch', + ), + ), + ( + 'submitter', + models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + to='patchwork.person', + ), + ), + ], + ), + ]