Refactor price db structure

#475
This commit is contained in:
Artur Beljajev 2017-04-24 01:33:04 +03:00
parent c5d667c711
commit 48135ba72c
6 changed files with 27 additions and 9 deletions

View file

@ -2497,8 +2497,7 @@ CREATE TABLE prices (
id integer NOT NULL,
"desc" character varying,
category character varying,
price_cents numeric(10,2) DEFAULT 0.0 NOT NULL,
price_currency character varying DEFAULT 'EUR'::character varying NOT NULL,
price_cents integer NOT NULL,
valid_from timestamp without time zone,
valid_to timestamp without time zone,
creator_str character varying,
@ -5175,3 +5174,9 @@ INSERT INTO schema_migrations (version) VALUES ('20170423145057');
INSERT INTO schema_migrations (version) VALUES ('20170423151046');
INSERT INTO schema_migrations (version) VALUES ('20170423210622');
INSERT INTO schema_migrations (version) VALUES ('20170423214500');
INSERT INTO schema_migrations (version) VALUES ('20170423222302');