From 59055b8056bd92ea56e97e86d9ec255daf0d3129 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Fri, 9 Dec 2022 13:19:29 +0900 Subject: feat: Add tenant slug to migrations --- .../src/Migrations/20221209041908_TenantSlug.cs | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 code/api/src/Migrations/20221209041908_TenantSlug.cs (limited to 'code/api/src/Migrations/20221209041908_TenantSlug.cs') diff --git a/code/api/src/Migrations/20221209041908_TenantSlug.cs b/code/api/src/Migrations/20221209041908_TenantSlug.cs new file mode 100644 index 0000000..9dc8be8 --- /dev/null +++ b/code/api/src/Migrations/20221209041908_TenantSlug.cs @@ -0,0 +1,28 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace IOL.GreatOffice.Api.Migrations +{ + /// + public partial class TenantSlug : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "slug", + table: "tenants", + type: "text", + nullable: true); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "slug", + table: "tenants"); + } + } +} -- cgit v1.3