Fase 3: Soporte de Imágenes en Wizard y Backend (Upload Local)
This commit is contained in:
@@ -154,6 +154,18 @@ BEGIN
|
||||
FOREIGN KEY (AttributeDefinitionId) REFERENCES AttributeDefinitions(Id) ON DELETE NO ACTION
|
||||
);
|
||||
END
|
||||
|
||||
IF NOT EXISTS (SELECT * FROM sys.tables WHERE name = 'ListingImages')
|
||||
BEGIN
|
||||
CREATE TABLE ListingImages (
|
||||
Id INT IDENTITY(1,1) PRIMARY KEY,
|
||||
ListingId INT NOT NULL,
|
||||
Url NVARCHAR(500) NOT NULL,
|
||||
IsMainInfo BIT DEFAULT 0,
|
||||
DisplayOrder INT DEFAULT 0,
|
||||
FOREIGN KEY (ListingId) REFERENCES Listings(Id) ON DELETE CASCADE
|
||||
);
|
||||
END
|
||||
";
|
||||
await connection.ExecuteAsync(schemaSql);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user