This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Foodloop-Server/share/ddl/SQLite/upgrade/30-31/001-auto.sql

22 lines
451 B
MySQL
Raw Permalink Normal View History

2020-11-18 22:59:50 +00:00
-- Convert schema 'share/ddl/_source/deploy/30/001-auto.yml' to 'share/ddl/_source/deploy/31/001-auto.yml':;
;
BEGIN;
;
CREATE TABLE device_tokens (
id INTEGER PRIMARY KEY NOT NULL,
user_id integer NOT NULL,
token varchar(200) NOT NULL,
register_date datetime NOT NULL,
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE NO ACTION ON UPDATE NO ACTION
);
;
CREATE INDEX device_tokens_idx_user_id ON device_tokens (user_id);
;
COMMIT;