mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 16:06:21 +00:00
19 lines
414 B
JavaScript
19 lines
414 B
JavaScript
|
|
let init = function(db){
|
|
|
|
// Create the tables we need to store galleries and files
|
|
db.schema.createTableIfNotExists('gallery', function (table) {
|
|
table.increments()
|
|
table.string('name')
|
|
table.timestamps()
|
|
}).then(() => {})
|
|
|
|
db.schema.createTableIfNotExists('files', function (table) {
|
|
table.increments()
|
|
table.string('file')
|
|
table.integer('galleryid')
|
|
}).then(() => {})
|
|
|
|
}
|
|
|
|
module.exports = init |