This repository has been archived on 2024-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
2021-03-12 11:53:52 +00:00
|
|
|
const con = require('./connect.js')
|
|
|
|
|
|
|
|
con.con.connect(function(err) {
|
|
|
|
if (err) throw err;
|
|
|
|
console.log("Connected!");
|
2021-03-12 15:26:02 +00:00
|
|
|
var sql = "CREATE TABLE smartTag2 (code VARCHAR(100) PRIMARY KEY, shelvingFk VARCHAR(10) FOREIGN KEY REFERENCES vn.shelving(code), level INT(11))";
|
2021-03-12 11:53:52 +00:00
|
|
|
con.con.query(sql, function (err, result) {
|
|
|
|
if (err) throw err;
|
|
|
|
console.log("Table created");
|
|
|
|
});
|
|
|
|
});
|