Last change
on this file was 13f1472, checked in by Danilo <danilo.najkov@…>, 22 months ago |
vip functionallity + menu fields + alergens filtering + google/fb login + email queueing
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Rev | Line | |
---|
[13f1472] | 1 | using System;
|
---|
| 2 | using Microsoft.EntityFrameworkCore.Migrations;
|
---|
| 3 | using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
---|
| 4 |
|
---|
| 5 | #nullable disable
|
---|
| 6 |
|
---|
| 7 | namespace backend.Migrations
|
---|
| 8 | {
|
---|
| 9 | public partial class CronJobs : Migration
|
---|
| 10 | {
|
---|
| 11 | protected override void Up(MigrationBuilder migrationBuilder)
|
---|
| 12 | {
|
---|
| 13 | migrationBuilder.CreateTable(
|
---|
| 14 | name: "QueueItems",
|
---|
| 15 | columns: table => new
|
---|
| 16 | {
|
---|
| 17 | Id = table.Column<int>(type: "integer", nullable: false)
|
---|
| 18 | .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn),
|
---|
| 19 | Subject = table.Column<string>(type: "text", nullable: false),
|
---|
| 20 | Message = table.Column<string>(type: "text", nullable: false),
|
---|
| 21 | Reciptient = table.Column<string>(type: "text", nullable: false),
|
---|
| 22 | CreatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
---|
| 23 | Retries = table.Column<int>(type: "integer", nullable: false)
|
---|
| 24 | },
|
---|
| 25 | constraints: table =>
|
---|
| 26 | {
|
---|
| 27 | table.PrimaryKey("PK_QueueItems", x => x.Id);
|
---|
| 28 | });
|
---|
| 29 | }
|
---|
| 30 |
|
---|
| 31 | protected override void Down(MigrationBuilder migrationBuilder)
|
---|
| 32 | {
|
---|
| 33 | migrationBuilder.DropTable(
|
---|
| 34 | name: "QueueItems");
|
---|
| 35 | }
|
---|
| 36 | }
|
---|
| 37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.