mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
fix issues.
This commit is contained in:
@@ -14,7 +14,6 @@ exports.up = function (knex) {
|
||||
table.text('note').nullable();
|
||||
table.integer('category_id').unsigned();
|
||||
table.integer('user_id').unsigned();
|
||||
table.string('attachment_file');
|
||||
table.timestamps();
|
||||
});
|
||||
};
|
||||
|
||||
@@ -9,7 +9,7 @@ exports.up = function (knex) {
|
||||
table.integer('view_id').unsigned();
|
||||
}).then(() => {
|
||||
return knex.seed.run({
|
||||
specific: 'seed_views_role.js',
|
||||
specific: 'seed_views_roles.js',
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
@@ -7,13 +7,13 @@ exports.seed = function(knex) {
|
||||
return knex('resource_fields').insert([
|
||||
{ id: 1, label_name: 'Name', key: 'name', data_type: '', active: 1, predefined: 1 },
|
||||
{ id: 2, label_name: 'Code', key: 'code', data_type: '', active: 1, predefined: 1 },
|
||||
{ id: 3, label_name: 'Account Type', key: 'account_type_id', data_type: '', active: 1, predefined: 1 },
|
||||
{ id: 3, label_name: 'Account Type', key: 'type', data_type: '', active: 1, predefined: 1 },
|
||||
{ id: 4, label_name: 'Description', key: 'description', data_type: '', active: 1, predefined: 1 },
|
||||
{ id: 5, label_name: 'Account Normal', key: 'normal', data_type: 'string', active: 1, predefined: 1 },
|
||||
{
|
||||
id: 6,
|
||||
label_name: 'Root Account Type',
|
||||
key: 'root_account_type',
|
||||
key: 'root_type',
|
||||
data_type: 'string',
|
||||
active: 1,
|
||||
predefined: 1,
|
||||
|
||||
@@ -5,11 +5,11 @@ exports.seed = (knex) => {
|
||||
.then(() => {
|
||||
// Inserts seed entries
|
||||
return knex('view_roles').insert([
|
||||
{ id: 1, field_id: 6, comparator: 'equals', value: 'asset', view_id: 1 },
|
||||
{ id: 2, field_id: 6, comparator: 'equals', value: 'liability', view_id: 2 },
|
||||
{ id: 3, field_id: 6, comparator: 'equals', value: 'equity', view_id: 3 },
|
||||
{ id: 4, field_id: 6, comparator: 'equals', value: 'income', view_id: 4 },
|
||||
{ id: 5, field_id: 6, comparator: 'equals', value: 'expense', view_id: 5 },
|
||||
{ id: 1, field_id: 6, index: 1, comparator: 'equals', value: 'asset', view_id: 1 },
|
||||
{ id: 2, field_id: 6, index: 1, comparator: 'equals', value: 'liability', view_id: 2 },
|
||||
{ id: 3, field_id: 6, index: 1, comparator: 'equals', value: 'equity', view_id: 3 },
|
||||
{ id: 4, field_id: 6, index: 1, comparator: 'equals', value: 'income', view_id: 4 },
|
||||
{ id: 5, field_id: 6, index: 1, comparator: 'equals', value: 'expense', view_id: 5 },
|
||||
]);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user