1110 lines
36 KiB
C#
1110 lines
36 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Modelo.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class mepaseasqlite : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "ProveedorCuit",
|
|
table: "Remitos",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Remitos",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "RazonSocial",
|
|
table: "Proveedores",
|
|
type: "TEXT",
|
|
maxLength: 60,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(60)",
|
|
oldMaxLength: 60);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Nombre",
|
|
table: "Proveedores",
|
|
type: "TEXT",
|
|
maxLength: 30,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(30)",
|
|
oldMaxLength: 30);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "Habilitado",
|
|
table: "Proveedores",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: true,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Direccion",
|
|
table: "Proveedores",
|
|
type: "TEXT",
|
|
maxLength: 60,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(60)",
|
|
oldMaxLength: 60);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Cuit",
|
|
table: "Proveedores",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ProductoId",
|
|
table: "ProductoProveedor",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "ProveedorId",
|
|
table: "ProductoProveedor",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ProductoId",
|
|
table: "ProductoCategoria",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "CategoriaId",
|
|
table: "ProductoCategoria",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "TipoDeEnvase",
|
|
table: "Producto",
|
|
type: "TEXT",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(max)",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Nombre",
|
|
table: "Producto",
|
|
type: "TEXT",
|
|
maxLength: 30,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(30)",
|
|
oldMaxLength: 30);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "MesesHastaVencimiento",
|
|
table: "Producto",
|
|
type: "INTEGER",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "MesesHastaConsumoPreferente",
|
|
table: "Producto",
|
|
type: "INTEGER",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "int",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "Habilitado",
|
|
table: "Producto",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: true,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "EsPerecedero",
|
|
table: "Producto",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Discriminator",
|
|
table: "Producto",
|
|
type: "TEXT",
|
|
maxLength: 21,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(21)",
|
|
oldMaxLength: 21);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Producto",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "ProveedorCuit",
|
|
table: "Presupuestos",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint");
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "IdProveedor",
|
|
table: "Presupuestos",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "Habilitado",
|
|
table: "Presupuestos",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "Fecha",
|
|
table: "Presupuestos",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "Aceptado",
|
|
table: "Presupuestos",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Presupuestos",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "ProveedorCuit",
|
|
table: "OrdenDeCompras",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint");
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "IdProveedor",
|
|
table: "OrdenDeCompras",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "Entregado",
|
|
table: "OrdenDeCompras",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "OrdenDeCompras",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ProductoId",
|
|
table: "Lotes",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "Habilitado",
|
|
table: "Lotes",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "Fecha",
|
|
table: "Lotes",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Cantidad",
|
|
table: "Lotes",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "IdRemito",
|
|
table: "Lotes",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Lotes",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "Total",
|
|
table: "Facturas",
|
|
type: "REAL",
|
|
nullable: false,
|
|
oldClrType: typeof(double),
|
|
oldType: "float");
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "IdCliente",
|
|
table: "Facturas",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "Fecha",
|
|
table: "Facturas",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "datetime2");
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "ClienteCuit",
|
|
table: "Facturas",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Facturas",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ProductoId",
|
|
table: "DetallesFacturas",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Cantidad",
|
|
table: "DetallesFacturas",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "IdFactura",
|
|
table: "DetallesFacturas",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "DetallesFacturas",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ProductoId",
|
|
table: "DetallePresupuestos",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "MontoCUPropuesto",
|
|
table: "DetallePresupuestos",
|
|
type: "REAL",
|
|
nullable: false,
|
|
oldClrType: typeof(double),
|
|
oldType: "float");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Cantidad",
|
|
table: "DetallePresupuestos",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "IdPresupuesto",
|
|
table: "DetallePresupuestos",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "DetallePresupuestos",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ProductoId",
|
|
table: "DetalleOrdenDeCompras",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "MontoCU",
|
|
table: "DetalleOrdenDeCompras",
|
|
type: "REAL",
|
|
nullable: false,
|
|
oldClrType: typeof(double),
|
|
oldType: "float");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "IdPresupuesto",
|
|
table: "DetalleOrdenDeCompras",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Cantidad",
|
|
table: "DetalleOrdenDeCompras",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "IdOrdenDeCompra",
|
|
table: "DetalleOrdenDeCompras",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "DetalleOrdenDeCompras",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Nombre",
|
|
table: "Clientes",
|
|
type: "TEXT",
|
|
maxLength: 30,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(30)",
|
|
oldMaxLength: 30);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "Habilitado",
|
|
table: "Clientes",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: true,
|
|
oldClrType: typeof(bool),
|
|
oldType: "bit",
|
|
oldDefaultValue: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Direccion",
|
|
table: "Clientes",
|
|
type: "TEXT",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Correo",
|
|
table: "Clientes",
|
|
type: "TEXT",
|
|
maxLength: 150,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(150)",
|
|
oldMaxLength: 150);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Apellido",
|
|
table: "Clientes",
|
|
type: "TEXT",
|
|
maxLength: 30,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(30)",
|
|
oldMaxLength: 30);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Cuit",
|
|
table: "Clientes",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "bigint");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Descripcion",
|
|
table: "Categoria",
|
|
type: "TEXT",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Categoria",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "int")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "ProveedorCuit",
|
|
table: "Remitos",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Remitos",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "RazonSocial",
|
|
table: "Proveedores",
|
|
type: "nvarchar(60)",
|
|
maxLength: 60,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldMaxLength: 60);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Nombre",
|
|
table: "Proveedores",
|
|
type: "nvarchar(30)",
|
|
maxLength: 30,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldMaxLength: 30);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "Habilitado",
|
|
table: "Proveedores",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: true,
|
|
oldClrType: typeof(bool),
|
|
oldType: "INTEGER",
|
|
oldDefaultValue: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Direccion",
|
|
table: "Proveedores",
|
|
type: "nvarchar(60)",
|
|
maxLength: 60,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldMaxLength: 60);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Cuit",
|
|
table: "Proveedores",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ProductoId",
|
|
table: "ProductoProveedor",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "ProveedorId",
|
|
table: "ProductoProveedor",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ProductoId",
|
|
table: "ProductoCategoria",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "CategoriaId",
|
|
table: "ProductoCategoria",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "TipoDeEnvase",
|
|
table: "Producto",
|
|
type: "nvarchar(max)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Nombre",
|
|
table: "Producto",
|
|
type: "nvarchar(30)",
|
|
maxLength: 30,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldMaxLength: 30);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "MesesHastaVencimiento",
|
|
table: "Producto",
|
|
type: "int",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "MesesHastaConsumoPreferente",
|
|
table: "Producto",
|
|
type: "int",
|
|
nullable: true,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "Habilitado",
|
|
table: "Producto",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: true,
|
|
oldClrType: typeof(bool),
|
|
oldType: "INTEGER",
|
|
oldDefaultValue: true);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "EsPerecedero",
|
|
table: "Producto",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Discriminator",
|
|
table: "Producto",
|
|
type: "nvarchar(21)",
|
|
maxLength: 21,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldMaxLength: 21);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Producto",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "ProveedorCuit",
|
|
table: "Presupuestos",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "IdProveedor",
|
|
table: "Presupuestos",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "Habilitado",
|
|
table: "Presupuestos",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "Fecha",
|
|
table: "Presupuestos",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "Aceptado",
|
|
table: "Presupuestos",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Presupuestos",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "ProveedorCuit",
|
|
table: "OrdenDeCompras",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "IdProveedor",
|
|
table: "OrdenDeCompras",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "Entregado",
|
|
table: "OrdenDeCompras",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "OrdenDeCompras",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ProductoId",
|
|
table: "Lotes",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "Habilitado",
|
|
table: "Lotes",
|
|
type: "bit",
|
|
nullable: false,
|
|
oldClrType: typeof(bool),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "Fecha",
|
|
table: "Lotes",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Cantidad",
|
|
table: "Lotes",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "IdRemito",
|
|
table: "Lotes",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Lotes",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "Total",
|
|
table: "Facturas",
|
|
type: "float",
|
|
nullable: false,
|
|
oldClrType: typeof(double),
|
|
oldType: "REAL");
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "IdCliente",
|
|
table: "Facturas",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<DateTime>(
|
|
name: "Fecha",
|
|
table: "Facturas",
|
|
type: "datetime2",
|
|
nullable: false,
|
|
oldClrType: typeof(DateTime),
|
|
oldType: "TEXT");
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "ClienteCuit",
|
|
table: "Facturas",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Facturas",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ProductoId",
|
|
table: "DetallesFacturas",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Cantidad",
|
|
table: "DetallesFacturas",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "IdFactura",
|
|
table: "DetallesFacturas",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "DetallesFacturas",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ProductoId",
|
|
table: "DetallePresupuestos",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "MontoCUPropuesto",
|
|
table: "DetallePresupuestos",
|
|
type: "float",
|
|
nullable: false,
|
|
oldClrType: typeof(double),
|
|
oldType: "REAL");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Cantidad",
|
|
table: "DetallePresupuestos",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "IdPresupuesto",
|
|
table: "DetallePresupuestos",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "DetallePresupuestos",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "ProductoId",
|
|
table: "DetalleOrdenDeCompras",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "MontoCU",
|
|
table: "DetalleOrdenDeCompras",
|
|
type: "float",
|
|
nullable: false,
|
|
oldClrType: typeof(double),
|
|
oldType: "REAL");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "IdPresupuesto",
|
|
table: "DetalleOrdenDeCompras",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Cantidad",
|
|
table: "DetalleOrdenDeCompras",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "IdOrdenDeCompra",
|
|
table: "DetalleOrdenDeCompras",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "DetalleOrdenDeCompras",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Nombre",
|
|
table: "Clientes",
|
|
type: "nvarchar(30)",
|
|
maxLength: 30,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldMaxLength: 30);
|
|
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "Habilitado",
|
|
table: "Clientes",
|
|
type: "bit",
|
|
nullable: false,
|
|
defaultValue: true,
|
|
oldClrType: typeof(bool),
|
|
oldType: "INTEGER",
|
|
oldDefaultValue: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Direccion",
|
|
table: "Clientes",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Correo",
|
|
table: "Clientes",
|
|
type: "nvarchar(150)",
|
|
maxLength: 150,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldMaxLength: 150);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Apellido",
|
|
table: "Clientes",
|
|
type: "nvarchar(30)",
|
|
maxLength: 30,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldMaxLength: 30);
|
|
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "Cuit",
|
|
table: "Clientes",
|
|
type: "bigint",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "INTEGER");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Descripcion",
|
|
table: "Categoria",
|
|
type: "nvarchar(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<int>(
|
|
name: "Id",
|
|
table: "Categoria",
|
|
type: "int",
|
|
nullable: false,
|
|
oldClrType: typeof(int),
|
|
oldType: "INTEGER")
|
|
.Annotation("Sqlite:Autoincrement", true)
|
|
.OldAnnotation("Sqlite:Autoincrement", true);
|
|
}
|
|
}
|
|
}
|