summaryrefslogtreecommitdiff
path: root/src/marlin.web/Migrations/20260902214847_InitialCreate.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/marlin.web/Migrations/20260902214847_InitialCreate.cs')
-rw-r--r--src/marlin.web/Migrations/20260902214847_InitialCreate.cs35
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");
+ }
+ }
+}