📄 scriptmysql_0.0.16.sql
字号:
-- Tina POS is a point of sales application designed for touch screens.-- Copyright (C) 2005 Adri醤 Romero Corchado.-- http://sourceforge.net/projects/tinapos---- This program is free software; you can redistribute it and/or modify-- it under the terms of the GNU General Public License as published by-- the Free Software Foundation; either version 2 of the License, or-- (at your option) any later version.---- This program is distributed in the hope that it will be useful,-- but WITHOUT ANY WARRANTY; without even the implied warranty of-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-- GNU General Public License for more details.---- You should have received a copy of the GNU General Public License-- along with this program; if not, write to the Free Software-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA-- Tina POS Database upgrade script for MySQL from version 0.0.16 to 0.0.17-- v0.0.17UPDATE TINAPOS SET VERSION = '0.0.17';CREATE INDEX CATEGORIES_NAME_INX ON CATEGORIES(NAME);CREATE INDEX PRODUCTS_NAME_INX ON PRODUCTS(NAME);INSERT INTO RESOURCES VALUES('Printer.Start', 0, $FILE{/net/adrianromero/templates/printerstart.xml});INSERT INTO RESOURCES VALUES('Printer.TicketTotal', 0, $FILE{/net/adrianromero/templates/printertickettotal.xml});INSERT INTO RESOURCES VALUES('Printer.CloseCash', 0, $FILE{/net/adrianromero/templates/printerclosecash.xml});CREATE TABLE PRODUCTS_COM ( REFERENCE VARCHAR(100) NOT NULL, REFERENCE2 VARCHAR(100) NOT NULL, PRIMARY KEY (REFERENCE, REFERENCE2), CONSTRAINT PRODUCTS_COM_FK_1 FOREIGN KEY (REFERENCE) REFERENCES PRODUCTS(REFERENCE), CONSTRAINT PRODUCTS_COM_FK_2 FOREIGN KEY (REFERENCE2) REFERENCES PRODUCTS(REFERENCE));ALTER TABLE PRODUCTS ADD COLUMN ISCOM BIT NOT NULL;ALTER TABLE PRODUCTSOUT ADD COLUMN NAME VARCHAR(100);ALTER TABLE PRODUCTSOUT ADD COLUMN ISCOM BIT;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -