mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-10 23:57:44 +08:00
Improve the setup database
This commit is contained in:
@@ -37,6 +37,11 @@ exports.up = function(knex) {
|
||||
table.increments('id');
|
||||
table.decimal('price').notNullable();
|
||||
table.string('name', 1000).notNullable();
|
||||
}).then(() => {
|
||||
knex("products").insert([
|
||||
{ price: 10, name: "Apple" },
|
||||
{ price: 20, name: "Orange" },
|
||||
]);
|
||||
});
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user