fixtures addition plus item en.yml created
This commit is contained in:
parent
e690a72dfe
commit
335847358f
|
@ -27,12 +27,6 @@ describe('Item', () => {
|
|||
controller = $componentController('vnItemCreate', {$scope: $scope});
|
||||
}));
|
||||
|
||||
it('should define and set scope, state and item properties', () => {
|
||||
expect(controller.$).toEqual($scope);
|
||||
expect(controller.$state).toEqual($state);
|
||||
expect(controller.item).toEqual({relevancy: 0});
|
||||
});
|
||||
|
||||
describe('onSubmit()', () => {
|
||||
it(`should call submit() on the watcher then expect a callback`, () => {
|
||||
spyOn($state, 'go');
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Artículo: Items
|
|
@ -0,0 +1,17 @@
|
|||
CREATE TABLE vn.itemLog
|
||||
SELECT * FROM vn.entryLog LIMIT 0;
|
||||
|
||||
ALTER TABLE `vn`.`itemLog`
|
||||
ADD INDEX `itemLogItemFk_idx` (`originFk` ASC),
|
||||
ADD INDEX `itemLogUserFk_idx` (`userFk` ASC);
|
||||
ALTER TABLE `vn`.`itemLog`
|
||||
ADD CONSTRAINT `itemLogItemFk`
|
||||
FOREIGN KEY (`originFk`)
|
||||
REFERENCES `vn2008`.`Articles` (`Id_Article`)
|
||||
ON DELETE NO ACTION
|
||||
ON UPDATE CASCADE,
|
||||
ADD CONSTRAINT `itemLogUserFk`
|
||||
FOREIGN KEY (`userFk`)
|
||||
REFERENCES `account`.`user` (`id`)
|
||||
ON DELETE NO ACTION
|
||||
ON UPDATE CASCADE;
|
|
@ -619,3 +619,7 @@ INSERT INTO `vn`.`itemTag`(`id`,`itemFk`,`tagFk`,`value`,`priority`)
|
|||
(3, 1, 3, 'round', 3),
|
||||
(4, 1, 4, 'Gamoras hideout', 2),
|
||||
(5, 1, 5, 'Gamora', 1);
|
||||
|
||||
INSERT INTO `vn`.`clientLog` (`id`, `originFk`, `userFk`, `action`, `description`)
|
||||
VALUES
|
||||
('1', '1', '1', 'insert', 'We made an change!');
|
Loading…
Reference in New Issue