diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-12-09 05:19:29 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-12-09 05:19:29 +0100 |
| commit | 59055b8056bd92ea56e97e86d9ec255daf0d3129 (patch) | |
| tree | 55fce22717d20feea672df01cadccc605bb4745c /code/api/src/Migrations/20221209041908_TenantSlug.cs | |
| parent | 036f11cdc0f99fd86f576f5335dae844391a0283 (diff) | |
| download | greatoffice-59055b8056bd92ea56e97e86d9ec255daf0d3129.tar.xz greatoffice-59055b8056bd92ea56e97e86d9ec255daf0d3129.zip | |
feat: Add tenant slug to migrations
Diffstat (limited to 'code/api/src/Migrations/20221209041908_TenantSlug.cs')
| -rw-r--r-- | code/api/src/Migrations/20221209041908_TenantSlug.cs | 28 |
1 files changed, 28 insertions, 0 deletions
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 +{ + /// <inheritdoc /> + public partial class TenantSlug : Migration + { + /// <inheritdoc /> + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn<string>( + name: "slug", + table: "tenants", + type: "text", + nullable: true); + } + + /// <inheritdoc /> + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "slug", + table: "tenants"); + } + } +} |
