mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-14 03:40:31 +00:00
fix: seed migration issue
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
exports.seed = (knex) => {
|
||||
// Deletes ALL existing entries
|
||||
return knex('subscription_plans')
|
||||
.del()
|
||||
.then(() => {
|
||||
// Inserts seed entries
|
||||
return knex('subscription_plans').insert([
|
||||
{
|
||||
name: 'Free',
|
||||
slug: 'free',
|
||||
price: 0,
|
||||
active: true,
|
||||
currency: 'USD',
|
||||
},
|
||||
{
|
||||
name: 'Early Adaptor',
|
||||
slug: 'early-adaptor',
|
||||
price: 29,
|
||||
active: true,
|
||||
currency: 'USD',
|
||||
invoice_period: 12,
|
||||
invoice_interval: 'month',
|
||||
},
|
||||
]);
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user