diff options
| author | Melodi <62381002+Melodi17@users.noreply.github.com> | 2026-09-03 23:06:05 +1000 |
|---|---|---|
| committer | Melodi <62381002+Melodi17@users.noreply.github.com> | 2026-09-03 23:06:05 +1000 |
| commit | 7c33b3f334cf91918add7af08866f2ea37ed9c3f (patch) | |
| tree | 8095a2d65e87a808fac62b47e315a4875cc86b73 /src/marlin.web/Migrations/20260902214847_InitialCreate.cs | |
chore: initial commit
Diffstat (limited to 'src/marlin.web/Migrations/20260902214847_InitialCreate.cs')
| -rw-r--r-- | src/marlin.web/Migrations/20260902214847_InitialCreate.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/marlin.web/Migrations/20260902214847_InitialCreate.cs b/src/marlin.web/Migrations/20260902214847_InitialCreate.cs new file mode 100644 index 0000000..6c91890 --- /dev/null +++ b/src/marlin.web/Migrations/20260902214847_InitialCreate.cs @@ -0,0 +1,35 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace marlin.web.Migrations +{ + /// <inheritdoc /> + public partial class InitialCreate : Migration + { + /// <inheritdoc /> + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "sources", + columns: table => new + { + id = table.Column<Guid>(type: "uuid", nullable: false), + upstream_url = table.Column<string>(type: "text", nullable: false), + branch_filter = table.Column<string>(type: "text", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("pk_sources", x => x.id); + }); + } + + /// <inheritdoc /> + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "sources"); + } + } +} |
