24 lines
664 B
C#
24 lines
664 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace VigilCareRecordsAPI.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddMrnSequence : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.Sql(
|
|
"CREATE SEQUENCE IF NOT EXISTS clinical.mrn_sequence START WITH 1 INCREMENT BY 1;");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.Sql("DROP SEQUENCE IF EXISTS clinical.mrn_sequence;");
|
|
}
|
|
}
|
|
}
|