Comments (7)
Sorry,
There was a PRIMARY KEY on the Item table but the UNIQUE constraint still messes up the export.
from trade-dangerous.
I'm proposing the following for Item table
CREATE TABLE Item
(
item_id INTEGER PRIMARY KEY,
name VARCHAR(40) COLLATE nocase,
category_id INTEGER NOT NULL,
ui_order INTEGER NOT NULL DEFAULT 0,
avg_price INTEGER,
fdev_id INTEGER,
UNIQUE(item_id),
FOREIGN KEY (category_id) REFERENCES Category(category_id)
ON UPDATE CASCADE
ON DELETE CASCADE
);
CREATE INDEX idx_item_by_fdev_id ON Item (fdev_id);
CREATE INDEX idx_item_by_item_id_fdev_id ON Item (item_id, fdev_id);
from trade-dangerous.
from trade-dangerous.
from trade-dangerous.
I noticed this while writing unit tests.
What I am doing to trigger it is trade export --all-tables --path="c:\temp\export\"
and it fails with the sqlite3.OperationalError: ambiguous column name: Item.fdev_id
message.
The option --all-tables
should export prices according to the help texts and it tries to do it using CSV.
In csvexport.py
, which is used by the export
command, it includes the StationItem table.
One way of fixing this is to exclude StationItem from all csv export but then the export_cmd.py file needs to be changed as well to reflect this. But in that case there would be a need for another way of exporting the prices.
from trade-dangerous.
from trade-dangerous.
from trade-dangerous.
Related Issues (20)
- Fix github actions to not try to publish when none on the main branch HOT 1
- This looks like an FC but --FC N HOT 9
- Add --age functionality to 'trade buy' HOT 1
- Relocate importable files into their own folder HOT 1
- Executing a trade run after a database update gives an error. In my TD\data folder the Tradedangerous.prices file is not showing HOT 6
- Fix the need to generate prices - pretty please with sugar on top. HOT 16
- When I run the command "trade.py import -P eddblink -O all", I get error messages ! HOT 9
- A General List of Potential Issues
- Fix warnings in deploy HOT 4
- Server hosting upgrade HOT 53
- Locale changes break on systems with certain locales, in general unnecessary
- Looks like `--progress` no longer works HOT 1
- Function/command "Cmdr Profile" generates an error HOT 4
- The search for specific goods generates an error ! Function "buy" HOT 10
- Again a problem with the command/function "Cmdr Profile" HOT 5
- The Culling: What's deprecated/discontinued?
- Enable Discussions tab in Github?
- PadSize argument parser is explicitly only allowing one character HOT 3
- Duplicate Rescue Ship "HR 1183/Arc's Faith" HOT 1
- The server seems to be no longer updating. HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trade-dangerous.