Commit 536101e 1 parent c712df3 commit 536101e Copy full SHA for 536101e
File tree 3 files changed +54
-60
lines changed
MySqlMigrations/Migrations
PostgresMigrations/Migrations
SqliteMigrations/Migrations
3 files changed +54
-60
lines changed Original file line number Diff line number Diff line change 1
- using System ;
2
- using Microsoft . EntityFrameworkCore . Migrations ;
1
+ using Microsoft . EntityFrameworkCore . Migrations ;
3
2
4
3
#nullable disable
5
4
6
- namespace Bit . MySqlMigrations . Migrations
5
+ namespace Bit . MySqlMigrations . Migrations ;
6
+
7
+ /// <inheritdoc />
8
+ public partial class AddArchivedDateToCipher : Migration
7
9
{
8
10
/// <inheritdoc />
9
- public partial class AddArchivedDateToCipher : Migration
11
+ protected override void Up ( MigrationBuilder migrationBuilder )
10
12
{
11
- /// <inheritdoc />
12
- protected override void Up ( MigrationBuilder migrationBuilder )
13
- {
14
- migrationBuilder . AddColumn < DateTime > (
15
- name : "ArchivedDate" ,
16
- table : "Cipher" ,
17
- type : "datetime(6)" ,
18
- nullable : true ) ;
19
- }
13
+ migrationBuilder . AddColumn < DateTime > (
14
+ name : "ArchivedDate" ,
15
+ table : "Cipher" ,
16
+ type : "datetime(6)" ,
17
+ nullable : true ) ;
18
+ }
20
19
21
- /// <inheritdoc />
22
- protected override void Down ( MigrationBuilder migrationBuilder )
23
- {
24
- migrationBuilder . DropColumn (
25
- name : "ArchivedDate" ,
26
- table : "Cipher" ) ;
27
- }
20
+ /// <inheritdoc />
21
+ protected override void Down ( MigrationBuilder migrationBuilder )
22
+ {
23
+ migrationBuilder . DropColumn (
24
+ name : "ArchivedDate" ,
25
+ table : "Cipher" ) ;
28
26
}
29
27
}
Original file line number Diff line number Diff line change 1
- using System ;
2
- using Microsoft . EntityFrameworkCore . Migrations ;
1
+ using Microsoft . EntityFrameworkCore . Migrations ;
3
2
4
3
#nullable disable
5
4
6
- namespace Bit . PostgresMigrations . Migrations
5
+ namespace Bit . PostgresMigrations . Migrations ;
6
+
7
+ /// <inheritdoc />
8
+ public partial class AddArchivedDateToCipher : Migration
7
9
{
8
10
/// <inheritdoc />
9
- public partial class AddArchivedDateToCipher : Migration
11
+ protected override void Up ( MigrationBuilder migrationBuilder )
10
12
{
11
- /// <inheritdoc />
12
- protected override void Up ( MigrationBuilder migrationBuilder )
13
- {
14
- migrationBuilder . AddColumn < DateTime > (
15
- name : "ArchivedDate" ,
16
- table : "Cipher" ,
17
- type : "timestamp with time zone" ,
18
- nullable : true ) ;
19
- }
13
+ migrationBuilder . AddColumn < DateTime > (
14
+ name : "ArchivedDate" ,
15
+ table : "Cipher" ,
16
+ type : "timestamp with time zone" ,
17
+ nullable : true ) ;
18
+ }
20
19
21
- /// <inheritdoc />
22
- protected override void Down ( MigrationBuilder migrationBuilder )
23
- {
24
- migrationBuilder . DropColumn (
25
- name : "ArchivedDate" ,
26
- table : "Cipher" ) ;
27
- }
20
+ /// <inheritdoc />
21
+ protected override void Down ( MigrationBuilder migrationBuilder )
22
+ {
23
+ migrationBuilder . DropColumn (
24
+ name : "ArchivedDate" ,
25
+ table : "Cipher" ) ;
28
26
}
29
27
}
Original file line number Diff line number Diff line change 1
- using System ;
2
- using Microsoft . EntityFrameworkCore . Migrations ;
1
+ using Microsoft . EntityFrameworkCore . Migrations ;
3
2
4
3
#nullable disable
5
4
6
- namespace Bit . SqliteMigrations . Migrations
5
+ namespace Bit . SqliteMigrations . Migrations ;
6
+
7
+ /// <inheritdoc />
8
+ public partial class AddArchivedDateToCipher : Migration
7
9
{
8
10
/// <inheritdoc />
9
- public partial class AddArchivedDateToCipher : Migration
11
+ protected override void Up ( MigrationBuilder migrationBuilder )
10
12
{
11
- /// <inheritdoc />
12
- protected override void Up ( MigrationBuilder migrationBuilder )
13
- {
14
- migrationBuilder . AddColumn < DateTime > (
15
- name : "ArchivedDate" ,
16
- table : "Cipher" ,
17
- type : "TEXT" ,
18
- nullable : true ) ;
19
- }
13
+ migrationBuilder . AddColumn < DateTime > (
14
+ name : "ArchivedDate" ,
15
+ table : "Cipher" ,
16
+ type : "TEXT" ,
17
+ nullable : true ) ;
18
+ }
20
19
21
- /// <inheritdoc />
22
- protected override void Down ( MigrationBuilder migrationBuilder )
23
- {
24
- migrationBuilder . DropColumn (
25
- name : "ArchivedDate" ,
26
- table : "Cipher" ) ;
27
- }
20
+ /// <inheritdoc />
21
+ protected override void Down ( MigrationBuilder migrationBuilder )
22
+ {
23
+ migrationBuilder . DropColumn (
24
+ name : "ArchivedDate" ,
25
+ table : "Cipher" ) ;
28
26
}
29
27
}
You can’t perform that action at this time.
0 commit comments