Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix project for linux #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,5 @@ target/

#Ipython Notebook
.ipynb_checkpoints

/.idea
2 changes: 1 addition & 1 deletion bookstore/src/config/DatabaseConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
DB_USER = 'root'
DB_NAME = 'bookstore'
DB_PASSWORD = 'root'
DB_CHARSET = 'utf8mb4'
DB_CHARSET = 'utf8mb4'
11 changes: 11 additions & 0 deletions db/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Migrations Orders:

- create_table.sql
- category.sql
- sub_cat.sql
- customer.sql
- book.sql
- feedback.sql
- rating.sql
- wishlist.sql
- address.sql
22 changes: 12 additions & 10 deletions db/address.sql
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
INSERT INTO address (country, state,city, zipcode, building, room_no, street) VALUES("india","maharashtra","mumbai",400014,"102/A",11,"dadar naigaon cross road");
INSERT INTO address (id, country, state, city, zipcode, building, room_no, street)
VALUES (1, "india", "maharashtra", "mumbai", 400014, "102/A", 11, "dadar naigaon cross road");

INSERT INTO shipment (id, address_id, type, promised_date, delivery_date, user_id)
VALUES (1, 1, "Home Delivery", "2016-12-10 12:12:12", "2016-12-10 12:12:10", "adit21");

INSERT INTO shipment (address_id, type,promised_date, delivery_date) VALUES(1, "Home Delivery", "2016-12-10 12:12:12", "2016-12-10 12:12:10");
INSERT INTO book_item (ISBN, quantity, item_id, price, total)
VALUES ("978-1401312855", 4, "gffg546456", 8.42, 34.00), ("978-0143125471", 4, "d56756", 9.49, 45.00), ("978-0143125471", 2, "d8564hf", 9.49, 18.00);

INSERT INTO book_item(ISBN, quantity, item_id, price, total) VALUES("978-1401312855",4,"gffg546456", 8.42,34.00),("978-0143125471",4,"d56756", 9.49, 45.00),("978-0143125471",2,"d8564hf",9.49,18.00);
INSERT INTO orders (Order_id, timestamp, login_id, status)
VALUES (1, "2016-12-12 00:00:00", "adit21", "in Transit to customer"), (2, "2016-12-12 00:00:00", "ames750", "Delivered to customer");

INSERT INTO order_detail (ISBN, item_id, Order_id, total, discount, shipment_id)
VALUES ("978-0143125471", "gffg546456", 1, 34.00, 20, 1);


INSERT INTO Orders(timestamp,login_id, status) VALUES ("2016-12-12 00:00:00", "adit21","in Transit to customer"), ("2016-12-12 00:00:00", "ames750","Delivered to customer");

INSERT INTO order_detail(ISBN, item_id,Order_id,total, discount,shipment_id) VALUES("978-0143125471","gffg546456",1,34.00, 20,1 );


INSERT INTO cart(cart_id, item_id, total, count, user_id) VALUES ("Asdg456","gffg546456",400.56,4,"adit21"),("Asdg456","adit21","d56756",500.56,2);
INSERT INTO cart (cart_id, item_id, total, count, user_id)
VALUES ("Asdg456", "gffg546456", 400.56, 4, "adit21"), ("Asdg456", "d56756", 500.56, 2, "adit21");
82 changes: 38 additions & 44 deletions db/book.sql

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions db/category.sql
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
("Fiction", NULL),
("Biography", NULL),
("Business & Management", NULL),
("Children", NULL),
("Fiction", NULL),
("Film", NULL),
("Health", NULL),
("Non Fiction", NULL),
("Action & Adventure",1),
("Indian Fiction",1),
("Business",2),
("Politicians & Leaders",2),
("Economics",3),
("Human Resources",3),
("Classic Stories",4),
("Mystery & Thrillers",5),
("Movies",6),
("Child Care & Parenting",7),
("General",8),("Ancient",9),
("Current Affairs",9)
INSERT INTO category (name, parent) VALUES
("Biography", NULL),
("Business & Management", NULL),
("Children", NULL),
("Fiction", NULL),
("Film", NULL),
("Health", NULL),
("Non Fiction", NULL),
("Action & Adventure", 1),
("Indian Fiction", 1),
("Business", 2),
("Politicians & Leaders", 2),
("Economics", 3),
("Human Resources", 3),
("Classic Stories", 4),
("Mystery & Thrillers", 5),
("Movies", 6),
("Child Care & Parenting", 7),
("General", 8), ("Ancient", 9),
("Current Affairs", 9);
133 changes: 0 additions & 133 deletions db/create.sql

This file was deleted.

Loading