瀏覽代碼

Deleting data from sqlite

master
rpm-mcarman 2 年之前
父節點
當前提交
7d84f25890
共有 5 個文件被更改,包括 28 次插入2 次删除
  1. +13
    -0
      .wappler/migrations/authdb/20240319002134_Nothing.js
  2. +1
    -1
      .wappler/targets/Development/app/config/config.json
  3. +13
    -0
      .wappler/targets/Development/databases/authdb.json
  4. +1
    -1
      app/config/config.json
  5. 二進制
      data/authdb.sqlite3

+ 13
- 0
.wappler/migrations/authdb/20240319002134_Nothing.js 查看文件

@@ -0,0 +1,13 @@

exports.up = function(knex) {
return knex.schema
.createTable('Nothing', async function (table) {
table.increments('id');
})

};

exports.down = function(knex) {
return knex.schema
.dropTable('Nothing')
};

+ 1
- 1
.wappler/targets/Development/app/config/config.json 查看文件

@@ -6,6 +6,6 @@
"methods": "GET,POST,DELETE,PATCH,PUT" "methods": "GET,POST,DELETE,PATCH,PUT"
}, },
"env": { "env": {
"API_BASEURL": "http://localhost:8080/api/v1.0/"
"API_BASEURL": "http://vapor.prelub.com/api/v1.0/"
} }
} }

+ 13
- 0
.wappler/targets/Development/databases/authdb.json 查看文件

@@ -139,6 +139,19 @@
} }
}, },
"db": {} "db": {}
},
"Nothing": {
"columns": {
"id": {
"db": {
"type": "increments",
"primary": true,
"unique": false,
"nullable": false
}
}
},
"db": {}
} }
}, },
"views": {} "views": {}


+ 1
- 1
app/config/config.json 查看文件

@@ -6,6 +6,6 @@
"methods": "GET,POST,DELETE,PATCH,PUT" "methods": "GET,POST,DELETE,PATCH,PUT"
}, },
"env": { "env": {
"API_BASEURL": "http://localhost:8080/api/v1.0/"
"API_BASEURL": "http://vapor.prelub.com/api/v1.0/"
} }
} }

二進制
data/authdb.sqlite3 查看文件


Loading…
取消
儲存