Compare commits
2 Commits
fix-prune
...
c8e28cdd64
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8e28cdd64 | ||
|
|
73363b9409 |
Submodule LightlessAPI updated: 9feb0b3c35...fdd492a8f4
1336
LightlessSyncServer/LightlessSyncShared/Migrations/20251227120132_LocationSharing.Designer.cs
generated
Normal file
1336
LightlessSyncServer/LightlessSyncShared/Migrations/20251227120132_LocationSharing.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,40 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace LightlessSyncServer.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class LocationSharing : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "share_location",
|
||||
table: "user_permission_sets",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "share_location",
|
||||
table: "group_pair_preferred_permissions",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "share_location",
|
||||
table: "user_permission_sets");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "share_location",
|
||||
table: "group_pair_preferred_permissions");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -584,6 +584,10 @@ namespace LightlessSyncServer.Migrations
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("is_paused");
|
||||
|
||||
b.Property<bool>("ShareLocation")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("share_location");
|
||||
|
||||
b.HasKey("UserUID", "GroupGID")
|
||||
.HasName("pk_group_pair_preferred_permissions");
|
||||
|
||||
@@ -941,6 +945,10 @@ namespace LightlessSyncServer.Migrations
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("is_paused");
|
||||
|
||||
b.Property<bool>("ShareLocation")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("share_location");
|
||||
|
||||
b.Property<bool>("Sticky")
|
||||
.HasColumnType("boolean")
|
||||
.HasColumnName("sticky");
|
||||
|
||||
Reference in New Issue
Block a user