tgstation-server  4.3.2
The /tg/station 13 server suite
20180906135553_MSInitialCreate.cs
Go to the documentation of this file.
1 using System;
2 using Microsoft.EntityFrameworkCore.Metadata;
3 using Microsoft.EntityFrameworkCore.Migrations;
4 
5 namespace Tgstation.Server.Host.Database.Migrations
6 {
10  #pragma warning disable CA1506
11  public partial class MSInitialCreate : Migration
12  {
14  protected override void Up(MigrationBuilder migrationBuilder)
15  {
16  if (migrationBuilder == null)
17  throw new ArgumentNullException(nameof(migrationBuilder));
18 
19  migrationBuilder.CreateTable(
20  name: "Users",
21  columns: table => new
22  {
23  Id = table.Column<long>(nullable: false)
24  .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
25  Enabled = table.Column<bool>(nullable: false),
26  CreatedAt = table.Column<DateTimeOffset>(nullable: false),
27  SystemIdentifier = table.Column<string>(nullable: true),
28  Name = table.Column<string>(nullable: false),
29  AdministrationRights = table.Column<decimal>(nullable: false),
30  InstanceManagerRights = table.Column<decimal>(nullable: false),
31  PasswordHash = table.Column<string>(nullable: true),
32  CreatedById = table.Column<long>(nullable: true),
33  CanonicalName = table.Column<string>(nullable: false),
34  LastPasswordUpdate = table.Column<DateTimeOffset>(nullable: true)
35  },
36  constraints: table =>
37  {
38  table.PrimaryKey("PK_Users", x => x.Id);
39  table.ForeignKey(
40  name: "FK_Users_Users_CreatedById",
41  column: x => x.CreatedById,
42  principalTable: "Users",
43  principalColumn: "Id",
44  onDelete: ReferentialAction.Restrict);
45  });
46 
47  migrationBuilder.CreateTable(
48  name: "ChatChannels",
49  columns: table => new
50  {
51  IrcChannel = table.Column<string>(nullable: true),
52  DiscordChannelId = table.Column<decimal>(nullable: true),
53  IsAdminChannel = table.Column<bool>(nullable: false),
54  IsWatchdogChannel = table.Column<bool>(nullable: false),
55  IsUpdatesChannel = table.Column<bool>(nullable: false),
56  Tag = table.Column<string>(nullable: true),
57  Id = table.Column<long>(nullable: false)
58  .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
59  ChatSettingsId = table.Column<long>(nullable: false)
60  },
61  constraints: table =>
62  {
63  table.PrimaryKey("PK_ChatChannels", x => x.Id);
64  });
65 
66  migrationBuilder.CreateTable(
67  name: "ReattachInformations",
68  columns: table => new
69  {
70  ChatCommandsJson = table.Column<string>(nullable: false),
71  ChatChannelsJson = table.Column<string>(nullable: false),
72  ServerCommandsJson = table.Column<string>(nullable: false),
73  AccessIdentifier = table.Column<string>(nullable: false),
74  ProcessId = table.Column<int>(nullable: false),
75  IsPrimary = table.Column<bool>(nullable: false),
76  Port = table.Column<int>(nullable: false),
77  RebootState = table.Column<int>(nullable: false),
78  Id = table.Column<long>(nullable: false)
79  .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
80  CompileJobId = table.Column<long>(nullable: true)
81  },
82  constraints: table =>
83  {
84  table.PrimaryKey("PK_ReattachInformations", x => x.Id);
85  });
86 
87  migrationBuilder.CreateTable(
88  name: "WatchdogReattachInformations",
89  columns: table => new
90  {
91  AlphaIsActive = table.Column<bool>(nullable: false),
92  Id = table.Column<long>(nullable: false)
93  .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
94  AlphaId = table.Column<long>(nullable: true),
95  BravoId = table.Column<long>(nullable: true)
96  },
97  constraints: table =>
98  {
99  table.PrimaryKey("PK_WatchdogReattachInformations", x => x.Id);
100  table.ForeignKey(
101  name: "FK_WatchdogReattachInformations_ReattachInformations_AlphaId",
102  column: x => x.AlphaId,
103  principalTable: "ReattachInformations",
104  principalColumn: "Id",
105  onDelete: ReferentialAction.Restrict);
106  table.ForeignKey(
107  name: "FK_WatchdogReattachInformations_ReattachInformations_BravoId",
108  column: x => x.BravoId,
109  principalTable: "ReattachInformations",
110  principalColumn: "Id",
111  onDelete: ReferentialAction.Restrict);
112  });
113 
114  migrationBuilder.CreateTable(
115  name: "Instances",
116  columns: table => new
117  {
118  Id = table.Column<long>(nullable: false)
119  .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
120  Name = table.Column<string>(nullable: false),
121  Path = table.Column<string>(nullable: false),
122  Online = table.Column<bool>(nullable: false),
123  ConfigurationType = table.Column<int>(nullable: false),
124  AutoUpdateInterval = table.Column<long>(nullable: false),
125  WatchdogReattachInformationId = table.Column<long>(nullable: true)
126  },
127  constraints: table =>
128  {
129  table.PrimaryKey("PK_Instances", x => x.Id);
130  table.ForeignKey(
131  name: "FK_Instances_WatchdogReattachInformations_WatchdogReattachInformationId",
132  column: x => x.WatchdogReattachInformationId,
133  principalTable: "WatchdogReattachInformations",
134  principalColumn: "Id",
135  onDelete: ReferentialAction.Restrict);
136  });
137 
138  migrationBuilder.CreateTable(
139  name: "ChatBots",
140  columns: table => new
141  {
142  Id = table.Column<long>(nullable: false)
143  .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
144  Name = table.Column<string>(nullable: false),
145  Enabled = table.Column<bool>(nullable: true),
146  Provider = table.Column<int>(nullable: true),
147  ConnectionString = table.Column<string>(nullable: false),
148  InstanceId = table.Column<long>(nullable: false)
149  },
150  constraints: table =>
151  {
152  table.PrimaryKey("PK_ChatBots", x => x.Id);
153  table.ForeignKey(
154  name: "FK_ChatBots_Instances_InstanceId",
155  column: x => x.InstanceId,
156  principalTable: "Instances",
157  principalColumn: "Id",
158  onDelete: ReferentialAction.Cascade);
159  });
160 
161  migrationBuilder.CreateTable(
162  name: "DreamDaemonSettings",
163  columns: table => new
164  {
165  AllowWebClient = table.Column<bool>(nullable: false),
166  SecurityLevel = table.Column<int>(nullable: false),
167  PrimaryPort = table.Column<int>(nullable: false),
168  SecondaryPort = table.Column<int>(nullable: false),
169  StartupTimeout = table.Column<long>(nullable: false),
170  AutoStart = table.Column<bool>(nullable: false),
171  SoftRestart = table.Column<bool>(nullable: false),
172  SoftShutdown = table.Column<bool>(nullable: false),
173  Id = table.Column<long>(nullable: false)
174  .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
175  ProcessId = table.Column<int>(nullable: true),
176  AccessToken = table.Column<string>(nullable: true),
177  InstanceId = table.Column<long>(nullable: false)
178  },
179  constraints: table =>
180  {
181  table.PrimaryKey("PK_DreamDaemonSettings", x => x.Id);
182  table.ForeignKey(
183  name: "FK_DreamDaemonSettings_Instances_InstanceId",
184  column: x => x.InstanceId,
185  principalTable: "Instances",
186  principalColumn: "Id",
187  onDelete: ReferentialAction.Cascade);
188  });
189 
190  migrationBuilder.CreateTable(
191  name: "DreamMakerSettings",
192  columns: table => new
193  {
194  ProjectName = table.Column<string>(nullable: true),
195  ApiValidationPort = table.Column<int>(nullable: false),
196  Id = table.Column<long>(nullable: false)
197  .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
198  InstanceId = table.Column<long>(nullable: false)
199  },
200  constraints: table =>
201  {
202  table.PrimaryKey("PK_DreamMakerSettings", x => x.Id);
203  table.ForeignKey(
204  name: "FK_DreamMakerSettings_Instances_InstanceId",
205  column: x => x.InstanceId,
206  principalTable: "Instances",
207  principalColumn: "Id",
208  onDelete: ReferentialAction.Cascade);
209  });
210 
211  migrationBuilder.CreateTable(
212  name: "InstanceUsers",
213  columns: table => new
214  {
215  UserId = table.Column<long>(nullable: false),
216  InstanceUserRights = table.Column<decimal>(nullable: false),
217  ByondRights = table.Column<decimal>(nullable: false),
218  DreamDaemonRights = table.Column<decimal>(nullable: false),
219  DreamMakerRights = table.Column<decimal>(nullable: false),
220  RepositoryRights = table.Column<decimal>(nullable: false),
221  ChatBotRights = table.Column<decimal>(nullable: false),
222  ConfigurationRights = table.Column<decimal>(nullable: false),
223  Id = table.Column<long>(nullable: false)
224  .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
225  InstanceId = table.Column<long>(nullable: false)
226  },
227  constraints: table =>
228  {
229  table.PrimaryKey("PK_InstanceUsers", x => x.Id);
230  table.ForeignKey(
231  name: "FK_InstanceUsers_Instances_InstanceId",
232  column: x => x.InstanceId,
233  principalTable: "Instances",
234  principalColumn: "Id",
235  onDelete: ReferentialAction.Cascade);
236  table.ForeignKey(
237  name: "FK_InstanceUsers_Users_UserId",
238  column: x => x.UserId,
239  principalTable: "Users",
240  principalColumn: "Id",
241  onDelete: ReferentialAction.Cascade);
242  });
243 
244  migrationBuilder.CreateTable(
245  name: "Jobs",
246  columns: table => new
247  {
248  Id = table.Column<long>(nullable: false)
249  .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
250  Description = table.Column<string>(nullable: false),
251  ExceptionDetails = table.Column<string>(nullable: true),
252  StartedAt = table.Column<DateTimeOffset>(nullable: false),
253  StoppedAt = table.Column<DateTimeOffset>(nullable: true),
254  Cancelled = table.Column<bool>(nullable: false),
255  CancelRightsType = table.Column<decimal>(nullable: true),
256  CancelRight = table.Column<decimal>(nullable: true),
257  StartedById = table.Column<long>(nullable: false),
258  CancelledById = table.Column<long>(nullable: true),
259  InstanceId = table.Column<long>(nullable: false)
260  },
261  constraints: table =>
262  {
263  table.PrimaryKey("PK_Jobs", x => x.Id);
264  table.ForeignKey(
265  name: "FK_Jobs_Users_CancelledById",
266  column: x => x.CancelledById,
267  principalTable: "Users",
268  principalColumn: "Id",
269  onDelete: ReferentialAction.Restrict);
270  table.ForeignKey(
271  name: "FK_Jobs_Instances_InstanceId",
272  column: x => x.InstanceId,
273  principalTable: "Instances",
274  principalColumn: "Id",
275  onDelete: ReferentialAction.Cascade);
276  table.ForeignKey(
277  name: "FK_Jobs_Users_StartedById",
278  column: x => x.StartedById,
279  principalTable: "Users",
280  principalColumn: "Id",
281  onDelete: ReferentialAction.Cascade);
282  });
283 
284  migrationBuilder.CreateTable(
285  name: "RepositorySettings",
286  columns: table => new
287  {
288  CommitterName = table.Column<string>(nullable: false),
289  CommitterEmail = table.Column<string>(nullable: false),
290  AccessUser = table.Column<string>(nullable: true),
291  AccessToken = table.Column<string>(nullable: true),
292  PushTestMergeCommits = table.Column<bool>(nullable: false),
293  ShowTestMergeCommitters = table.Column<bool>(nullable: false),
294  AutoUpdatesKeepTestMerges = table.Column<bool>(nullable: false),
295  AutoUpdatesSynchronize = table.Column<bool>(nullable: false),
296  Id = table.Column<long>(nullable: false)
297  .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
298  InstanceId = table.Column<long>(nullable: false)
299  },
300  constraints: table =>
301  {
302  table.PrimaryKey("PK_RepositorySettings", x => x.Id);
303  table.ForeignKey(
304  name: "FK_RepositorySettings_Instances_InstanceId",
305  column: x => x.InstanceId,
306  principalTable: "Instances",
307  principalColumn: "Id",
308  onDelete: ReferentialAction.Cascade);
309  });
310 
311  migrationBuilder.CreateTable(
312  name: "RevisionInformations",
313  columns: table => new
314  {
315  CommitSha = table.Column<string>(maxLength: 40, nullable: false),
316  OriginCommitSha = table.Column<string>(maxLength: 40, nullable: false),
317  Id = table.Column<long>(nullable: false)
318  .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
319  InstanceId = table.Column<long>(nullable: false)
320  },
321  constraints: table =>
322  {
323  table.PrimaryKey("PK_RevisionInformations", x => x.Id);
324  table.ForeignKey(
325  name: "FK_RevisionInformations_Instances_InstanceId",
326  column: x => x.InstanceId,
327  principalTable: "Instances",
328  principalColumn: "Id",
329  onDelete: ReferentialAction.Cascade);
330  });
331 
332  migrationBuilder.CreateTable(
333  name: "CompileJobs",
334  columns: table => new
335  {
336  Id = table.Column<long>(nullable: false)
337  .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
338  DmeName = table.Column<string>(nullable: true),
339  Output = table.Column<string>(nullable: true),
340  DirectoryName = table.Column<Guid>(nullable: true),
341  JobId = table.Column<long>(nullable: true),
342  RevisionInformationId = table.Column<long>(nullable: false),
343  ByondVersion = table.Column<string>(nullable: false)
344  },
345  constraints: table =>
346  {
347  table.PrimaryKey("PK_CompileJobs", x => x.Id);
348  table.ForeignKey(
349  name: "FK_CompileJobs_Jobs_JobId",
350  column: x => x.JobId,
351  principalTable: "Jobs",
352  principalColumn: "Id",
353  onDelete: ReferentialAction.Restrict);
354  table.ForeignKey(
355  name: "FK_CompileJobs_RevisionInformations_RevisionInformationId",
356  column: x => x.RevisionInformationId,
357  principalTable: "RevisionInformations",
358  principalColumn: "Id",
359  onDelete: ReferentialAction.Cascade);
360  });
361 
362  migrationBuilder.CreateTable(
363  name: "TestMerges",
364  columns: table => new
365  {
366  Number = table.Column<int>(nullable: false),
367  PullRequestRevision = table.Column<string>(nullable: false),
368  Comment = table.Column<string>(nullable: true),
369  TitleAtMerge = table.Column<string>(nullable: false),
370  BodyAtMerge = table.Column<string>(nullable: false),
371  Url = table.Column<string>(nullable: false),
372  Author = table.Column<string>(nullable: false),
373  Id = table.Column<long>(nullable: false)
374  .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
375  MergedAt = table.Column<DateTimeOffset>(nullable: false),
376  MergedById = table.Column<long>(nullable: false),
377  PrimaryRevisionInformationId = table.Column<long>(nullable: true)
378  },
379  constraints: table =>
380  {
381  table.PrimaryKey("PK_TestMerges", x => x.Id);
382  table.ForeignKey(
383  name: "FK_TestMerges_Users_MergedById",
384  column: x => x.MergedById,
385  principalTable: "Users",
386  principalColumn: "Id",
387  onDelete: ReferentialAction.Restrict);
388  table.ForeignKey(
389  name: "FK_TestMerges_RevisionInformations_PrimaryRevisionInformationId",
390  column: x => x.PrimaryRevisionInformationId,
391  principalTable: "RevisionInformations",
392  principalColumn: "Id",
393  onDelete: ReferentialAction.SetNull);
394  });
395 
396  migrationBuilder.CreateTable(
397  name: "RevInfoTestMerges",
398  columns: table => new
399  {
400  Id = table.Column<long>(nullable: false)
401  .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
402  TestMergeId = table.Column<long>(nullable: false),
403  RevisionInformationId = table.Column<long>(nullable: false)
404  },
405  constraints: table =>
406  {
407  table.PrimaryKey("PK_RevInfoTestMerges", x => x.Id);
408  table.ForeignKey(
409  name: "FK_RevInfoTestMerges_RevisionInformations_RevisionInformationId",
410  column: x => x.RevisionInformationId,
411  principalTable: "RevisionInformations",
412  principalColumn: "Id",
413  onDelete: ReferentialAction.Cascade);
414  table.ForeignKey(
415  name: "FK_RevInfoTestMerges_TestMerges_TestMergeId",
416  column: x => x.TestMergeId,
417  principalTable: "TestMerges",
418  principalColumn: "Id",
419  onDelete: ReferentialAction.Cascade);
420  });
421 
422  migrationBuilder.CreateIndex(
423  name: "IX_ChatBots_InstanceId",
424  table: "ChatBots",
425  column: "InstanceId");
426 
427  migrationBuilder.CreateIndex(
428  name: "IX_ChatBots_Name",
429  table: "ChatBots",
430  column: "Name",
431  unique: true);
432 
433  migrationBuilder.CreateIndex(
434  name: "IX_ChatChannels_ChatSettingsId_DiscordChannelId",
435  table: "ChatChannels",
436  columns: new[] { "ChatSettingsId", "DiscordChannelId" },
437  unique: true,
438  filter: "[DiscordChannelId] IS NOT NULL");
439 
440  migrationBuilder.CreateIndex(
441  name: "IX_ChatChannels_ChatSettingsId_IrcChannel",
442  table: "ChatChannels",
443  columns: new[] { "ChatSettingsId", "IrcChannel" },
444  unique: true,
445  filter: "[IrcChannel] IS NOT NULL");
446 
447  migrationBuilder.CreateIndex(
448  name: "IX_CompileJobs_DirectoryName",
449  table: "CompileJobs",
450  column: "DirectoryName");
451 
452  migrationBuilder.CreateIndex(
453  name: "IX_CompileJobs_JobId",
454  table: "CompileJobs",
455  column: "JobId");
456 
457  migrationBuilder.CreateIndex(
458  name: "IX_CompileJobs_RevisionInformationId",
459  table: "CompileJobs",
460  column: "RevisionInformationId");
461 
462  migrationBuilder.CreateIndex(
463  name: "IX_DreamDaemonSettings_InstanceId",
464  table: "DreamDaemonSettings",
465  column: "InstanceId",
466  unique: true);
467 
468  migrationBuilder.CreateIndex(
469  name: "IX_DreamMakerSettings_InstanceId",
470  table: "DreamMakerSettings",
471  column: "InstanceId",
472  unique: true);
473 
474  migrationBuilder.CreateIndex(
475  name: "IX_Instances_Path",
476  table: "Instances",
477  column: "Path",
478  unique: true);
479 
480  migrationBuilder.CreateIndex(
481  name: "IX_Instances_WatchdogReattachInformationId",
482  table: "Instances",
483  column: "WatchdogReattachInformationId");
484 
485  migrationBuilder.CreateIndex(
486  name: "IX_InstanceUsers_InstanceId",
487  table: "InstanceUsers",
488  column: "InstanceId");
489 
490  migrationBuilder.CreateIndex(
491  name: "IX_InstanceUsers_UserId_InstanceId",
492  table: "InstanceUsers",
493  columns: new[] { "UserId", "InstanceId" },
494  unique: true);
495 
496  migrationBuilder.CreateIndex(
497  name: "IX_Jobs_CancelledById",
498  table: "Jobs",
499  column: "CancelledById");
500 
501  migrationBuilder.CreateIndex(
502  name: "IX_Jobs_InstanceId",
503  table: "Jobs",
504  column: "InstanceId");
505 
506  migrationBuilder.CreateIndex(
507  name: "IX_Jobs_StartedById",
508  table: "Jobs",
509  column: "StartedById");
510 
511  migrationBuilder.CreateIndex(
512  name: "IX_ReattachInformations_CompileJobId",
513  table: "ReattachInformations",
514  column: "CompileJobId");
515 
516  migrationBuilder.CreateIndex(
517  name: "IX_RepositorySettings_InstanceId",
518  table: "RepositorySettings",
519  column: "InstanceId",
520  unique: true);
521 
522  migrationBuilder.CreateIndex(
523  name: "IX_RevInfoTestMerges_RevisionInformationId",
524  table: "RevInfoTestMerges",
525  column: "RevisionInformationId");
526 
527  migrationBuilder.CreateIndex(
528  name: "IX_RevInfoTestMerges_TestMergeId",
529  table: "RevInfoTestMerges",
530  column: "TestMergeId");
531 
532  migrationBuilder.CreateIndex(
533  name: "IX_RevisionInformations_CommitSha",
534  table: "RevisionInformations",
535  column: "CommitSha",
536  unique: true);
537 
538  migrationBuilder.CreateIndex(
539  name: "IX_RevisionInformations_InstanceId",
540  table: "RevisionInformations",
541  column: "InstanceId");
542 
543  migrationBuilder.CreateIndex(
544  name: "IX_TestMerges_MergedById",
545  table: "TestMerges",
546  column: "MergedById");
547 
548  migrationBuilder.CreateIndex(
549  name: "IX_TestMerges_PrimaryRevisionInformationId",
550  table: "TestMerges",
551  column: "PrimaryRevisionInformationId",
552  unique: true,
553  filter: "[PrimaryRevisionInformationId] IS NOT NULL");
554 
555  migrationBuilder.CreateIndex(
556  name: "IX_Users_CanonicalName",
557  table: "Users",
558  column: "CanonicalName",
559  unique: true);
560 
561  migrationBuilder.CreateIndex(
562  name: "IX_Users_CreatedById",
563  table: "Users",
564  column: "CreatedById");
565 
566  migrationBuilder.CreateIndex(
567  name: "IX_WatchdogReattachInformations_AlphaId",
568  table: "WatchdogReattachInformations",
569  column: "AlphaId");
570 
571  migrationBuilder.CreateIndex(
572  name: "IX_WatchdogReattachInformations_BravoId",
573  table: "WatchdogReattachInformations",
574  column: "BravoId");
575 
576  migrationBuilder.AddForeignKey(
577  name: "FK_ChatChannels_ChatBots_ChatSettingsId",
578  table: "ChatChannels",
579  column: "ChatSettingsId",
580  principalTable: "ChatBots",
581  principalColumn: "Id",
582  onDelete: ReferentialAction.Cascade);
583 
584  migrationBuilder.AddForeignKey(
585  name: "FK_ReattachInformations_CompileJobs_CompileJobId",
586  table: "ReattachInformations",
587  column: "CompileJobId",
588  principalTable: "CompileJobs",
589  principalColumn: "Id",
590  onDelete: ReferentialAction.Restrict);
591  }
592 
594  protected override void Down(MigrationBuilder migrationBuilder)
595  {
596  if (migrationBuilder == null)
597  throw new ArgumentNullException(nameof(migrationBuilder));
598 
599  migrationBuilder.DropForeignKey(
600  name: "FK_Jobs_Instances_InstanceId",
601  table: "Jobs");
602 
603  migrationBuilder.DropForeignKey(
604  name: "FK_RevisionInformations_Instances_InstanceId",
605  table: "RevisionInformations");
606 
607  migrationBuilder.DropTable(
608  name: "ChatChannels");
609 
610  migrationBuilder.DropTable(
611  name: "DreamDaemonSettings");
612 
613  migrationBuilder.DropTable(
614  name: "DreamMakerSettings");
615 
616  migrationBuilder.DropTable(
617  name: "InstanceUsers");
618 
619  migrationBuilder.DropTable(
620  name: "RepositorySettings");
621 
622  migrationBuilder.DropTable(
623  name: "RevInfoTestMerges");
624 
625  migrationBuilder.DropTable(
626  name: "ChatBots");
627 
628  migrationBuilder.DropTable(
629  name: "TestMerges");
630 
631  migrationBuilder.DropTable(
632  name: "Instances");
633 
634  migrationBuilder.DropTable(
635  name: "WatchdogReattachInformations");
636 
637  migrationBuilder.DropTable(
638  name: "ReattachInformations");
639 
640  migrationBuilder.DropTable(
641  name: "CompileJobs");
642 
643  migrationBuilder.DropTable(
644  name: "Jobs");
645 
646  migrationBuilder.DropTable(
647  name: "RevisionInformations");
648 
649  migrationBuilder.DropTable(
650  name: "Users");
651  }
652  }
653 }
ConfigurationRights
Rights for Models.ConfigurationFile
ByondRights
Rights for Models.Byond
Definition: ByondRights.cs:9
InstanceUserRights
Rights for an Models.Instance
AdministrationRights
Rights for Models.Administration
ConfigurationType
The type of configuration allowed on an Instance
DreamDaemonRights
Rights for Models.DreamDaemon
RebootState
Represents the action to take when /world/Reboot() is called
Definition: RebootState.cs:6
InstanceManagerRights
Rights for managing Models.Instances
DreamMakerRights
Rights for Models.DreamMaker
RepositoryRights
Rights for a Models.Repository
ChatBotRights
Rights for Models.ChatBot
Definition: ChatBotRights.cs:9