mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Add timestamps to ISO tables.
This commit is contained in:
@@ -1,4 +1,29 @@
|
|||||||
using System;
|
/******************************************************************************
|
||||||
|
// MARECHAI: Master repository of computing history artifacts information
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
||||||
|
//
|
||||||
|
// --[ License ] --------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as
|
||||||
|
// published by the Free Software Foundation, either version 3 of the
|
||||||
|
// License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
//
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// Copyright © 2003-2020 Natalia Portillo
|
||||||
|
*******************************************************************************/
|
||||||
|
|
||||||
|
using System;
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
namespace Marechai.Database.Migrations
|
namespace Marechai.Database.Migrations
|
||||||
|
|||||||
4214
Marechai.Database/Migrations/20200610193853_AddTimestampsToIsoTables.Designer.cs
generated
Normal file
4214
Marechai.Database/Migrations/20200610193853_AddTimestampsToIsoTables.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,70 @@
|
|||||||
|
/******************************************************************************
|
||||||
|
// MARECHAI: Master repository of computing history artifacts information
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
||||||
|
//
|
||||||
|
// --[ License ] --------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as
|
||||||
|
// published by the Free Software Foundation, either version 3 of the
|
||||||
|
// License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
//
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// Copyright © 2003-2020 Natalia Portillo
|
||||||
|
*******************************************************************************/
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Metadata;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace Marechai.Database.Migrations
|
||||||
|
{
|
||||||
|
public partial class AddTimestampsToIsoTables : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<DateTime>("CreatedOn", "Iso4217", nullable: false).
|
||||||
|
Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<DateTime>("UpdatedOn", "Iso4217", nullable: false).
|
||||||
|
Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<DateTime>("CreatedOn", "iso3166_1_numeric", nullable: false).
|
||||||
|
Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<DateTime>("UpdatedOn", "iso3166_1_numeric", nullable: false).
|
||||||
|
Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<DateTime>("CreatedOn", "ISO_639-3", nullable: false).
|
||||||
|
Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn);
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<DateTime>("UpdatedOn", "ISO_639-3", nullable: false).
|
||||||
|
Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.ComputedColumn);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn("CreatedOn", "Iso4217");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn("UpdatedOn", "Iso4217");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn("CreatedOn", "iso3166_1_numeric");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn("UpdatedOn", "iso3166_1_numeric");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn("CreatedOn", "ISO_639-3");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn("UpdatedOn", "ISO_639-3");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -803,9 +803,13 @@ namespace Marechai.Database.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<short>("Id").ValueGeneratedOnAdd().HasColumnName("id").HasColumnType("smallint(3)");
|
b.Property<short>("Id").ValueGeneratedOnAdd().HasColumnName("id").HasColumnType("smallint(3)");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreatedOn").ValueGeneratedOnAdd().HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<string>("Name").IsRequired().HasColumnName("name").HasColumnType("varchar(64)").
|
b.Property<string>("Name").IsRequired().HasColumnName("name").HasColumnType("varchar(64)").
|
||||||
HasMaxLength(64);
|
HasMaxLength(64);
|
||||||
|
|
||||||
|
b.Property<DateTime>("UpdatedOn").ValueGeneratedOnAddOrUpdate().HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("Name").HasName("idx_name");
|
b.HasIndex("Name").HasName("idx_name");
|
||||||
@@ -817,6 +821,8 @@ namespace Marechai.Database.Migrations
|
|||||||
{
|
{
|
||||||
b.Property<string>("Code").HasColumnType("varchar(3) CHARACTER SET utf8mb4").HasMaxLength(3);
|
b.Property<string>("Code").HasColumnType("varchar(3) CHARACTER SET utf8mb4").HasMaxLength(3);
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreatedOn").ValueGeneratedOnAdd().HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<byte?>("MinorUnits").HasColumnType("tinyint unsigned");
|
b.Property<byte?>("MinorUnits").HasColumnType("tinyint unsigned");
|
||||||
|
|
||||||
b.Property<string>("Name").IsRequired().HasColumnType("varchar(150) CHARACTER SET utf8mb4").
|
b.Property<string>("Name").IsRequired().HasColumnType("varchar(150) CHARACTER SET utf8mb4").
|
||||||
@@ -824,6 +830,8 @@ namespace Marechai.Database.Migrations
|
|||||||
|
|
||||||
b.Property<short>("Numeric").HasColumnType("smallint(3)");
|
b.Property<short>("Numeric").HasColumnType("smallint(3)");
|
||||||
|
|
||||||
|
b.Property<DateTime>("UpdatedOn").ValueGeneratedOnAddOrUpdate().HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<DateTime?>("Withdrawn").HasColumnType("datetime(6)");
|
b.Property<DateTime?>("Withdrawn").HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.HasKey("Code");
|
b.HasKey("Code");
|
||||||
@@ -841,6 +849,8 @@ namespace Marechai.Database.Migrations
|
|||||||
|
|
||||||
b.Property<string>("Comment").HasColumnType("varchar(150)");
|
b.Property<string>("Comment").HasColumnType("varchar(150)");
|
||||||
|
|
||||||
|
b.Property<DateTime>("CreatedOn").ValueGeneratedOnAdd().HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.Property<string>("Part1").HasColumnType("char(2)");
|
b.Property<string>("Part1").HasColumnType("char(2)");
|
||||||
|
|
||||||
b.Property<string>("Part2B").HasColumnType("char(3)");
|
b.Property<string>("Part2B").HasColumnType("char(3)");
|
||||||
@@ -854,6 +864,8 @@ namespace Marechai.Database.Migrations
|
|||||||
|
|
||||||
b.Property<string>("Type").IsRequired().HasColumnType("char(1)");
|
b.Property<string>("Type").IsRequired().HasColumnType("char(1)");
|
||||||
|
|
||||||
|
b.Property<DateTime>("UpdatedOn").ValueGeneratedOnAddOrUpdate().HasColumnType("datetime(6)");
|
||||||
|
|
||||||
b.HasKey("Id");
|
b.HasKey("Id");
|
||||||
|
|
||||||
b.HasIndex("Comment");
|
b.HasIndex("Comment");
|
||||||
|
|||||||
@@ -23,8 +23,10 @@
|
|||||||
// Copyright © 2003-2020 Natalia Portillo
|
// Copyright © 2003-2020 Natalia Portillo
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
namespace Marechai.Database.Models
|
namespace Marechai.Database.Models
|
||||||
{
|
{
|
||||||
@@ -32,6 +34,11 @@ namespace Marechai.Database.Models
|
|||||||
{
|
{
|
||||||
public Iso31661Numeric() => Companies = new HashSet<Company>();
|
public Iso31661Numeric() => Companies = new HashSet<Company>();
|
||||||
|
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
|
public DateTime CreatedOn { get; set; }
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
|
||||||
|
public DateTime UpdatedOn { get; set; }
|
||||||
|
|
||||||
[Required]
|
[Required]
|
||||||
public short Id { get; set; }
|
public short Id { get; set; }
|
||||||
[Required, StringLength(64)]
|
[Required, StringLength(64)]
|
||||||
|
|||||||
@@ -1,3 +1,28 @@
|
|||||||
|
/******************************************************************************
|
||||||
|
// MARECHAI: Master repository of computing history artifacts information
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
||||||
|
//
|
||||||
|
// --[ License ] --------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as
|
||||||
|
// published by the Free Software Foundation, either version 3 of the
|
||||||
|
// License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
//
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// Copyright © 2003-2020 Natalia Portillo
|
||||||
|
*******************************************************************************/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
@@ -6,6 +31,11 @@ namespace Marechai.Database.Models
|
|||||||
{
|
{
|
||||||
public class Iso4217
|
public class Iso4217
|
||||||
{
|
{
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
|
public DateTime CreatedOn { get; set; }
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
|
||||||
|
public DateTime UpdatedOn { get; set; }
|
||||||
|
|
||||||
[StringLength(3), Required, Key]
|
[StringLength(3), Required, Key]
|
||||||
public string Code { get; set; }
|
public string Code { get; set; }
|
||||||
[Column(TypeName = "smallint(3)"), Required]
|
[Column(TypeName = "smallint(3)"), Required]
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
// Copyright © 2003-2020 Natalia Portillo
|
// Copyright © 2003-2020 Natalia Portillo
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
|
using System;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
|
||||||
@@ -31,6 +32,11 @@ namespace Marechai.Database.Models
|
|||||||
/// <summary>ISO-639 codes</summary>
|
/// <summary>ISO-639 codes</summary>
|
||||||
public class Iso639
|
public class Iso639
|
||||||
{
|
{
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||||
|
public DateTime CreatedOn { get; set; }
|
||||||
|
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
|
||||||
|
public DateTime UpdatedOn { get; set; }
|
||||||
|
|
||||||
[Column(TypeName = "char(3)"), Key, Required]
|
[Column(TypeName = "char(3)"), Key, Required]
|
||||||
public string Id { get; set; }
|
public string Id { get; set; }
|
||||||
[Column(TypeName = "char(3)")]
|
[Column(TypeName = "char(3)")]
|
||||||
|
|||||||
@@ -1,3 +1,28 @@
|
|||||||
|
/******************************************************************************
|
||||||
|
// MARECHAI: Master repository of computing history artifacts information
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
||||||
|
//
|
||||||
|
// --[ License ] --------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as
|
||||||
|
// published by the Free Software Foundation, either version 3 of the
|
||||||
|
// License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
//
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// Copyright © 2003-2020 Natalia Portillo
|
||||||
|
*******************************************************************************/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Xml.Serialization;
|
using System.Xml.Serialization;
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,28 @@
|
|||||||
|
/******************************************************************************
|
||||||
|
// MARECHAI: Master repository of computing history artifacts information
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
||||||
|
//
|
||||||
|
// --[ License ] --------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// This program is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as
|
||||||
|
// published by the Free Software Foundation, either version 3 of the
|
||||||
|
// License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This program is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
//
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// Copyright © 2003-2020 Natalia Portillo
|
||||||
|
*******************************************************************************/
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
<Version>4.0.0.1647</Version>
|
<Version>4.0.0.1649</Version>
|
||||||
<Company>Canary Islands Computer Museum</Company>
|
<Company>Canary Islands Computer Museum</Company>
|
||||||
<Copyright>Copyright © 2003-2020 Natalia Portillo</Copyright>
|
<Copyright>Copyright © 2003-2020 Natalia Portillo</Copyright>
|
||||||
<Product>Canary Islands Computer Museum Website</Product>
|
<Product>Canary Islands Computer Museum Website</Product>
|
||||||
|
|||||||
Reference in New Issue
Block a user