2024-08-18 18:16:08 +02:00
|
|
|
-- Copyright (C) ---Replace with your own copyright and developer email---
|
2017-05-08 21:00:23 +02:00
|
|
|
--
|
|
|
|
|
-- 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 3 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
|
2019-09-23 21:55:30 +02:00
|
|
|
-- along with this program. If not, see https://www.gnu.org/licenses/.
|
2017-05-08 21:00:23 +02:00
|
|
|
|
2017-06-21 19:26:36 +02:00
|
|
|
|
2017-07-12 01:55:07 +02:00
|
|
|
-- BEGIN MODULEBUILDER INDEXES
|
2020-08-27 21:46:28 +02:00
|
|
|
ALTER TABLE llx_mymodule_myobject ADD INDEX idx_mymodule_myobject_fieldobject (fieldobject);
|
2017-07-12 01:55:07 +02:00
|
|
|
-- END MODULEBUILDER INDEXES
|
|
|
|
|
|
2018-03-27 23:26:20 +02:00
|
|
|
--ALTER TABLE llx_mymodule_myobject ADD UNIQUE INDEX uk_mymodule_myobject_fieldxy(fieldx, fieldy);
|
2017-10-26 01:02:13 +02:00
|
|
|
|
2018-03-27 23:26:20 +02:00
|
|
|
--ALTER TABLE llx_mymodule_myobject ADD CONSTRAINT llx_mymodule_myobject_fk_field FOREIGN KEY (fk_field) REFERENCES llx_mymodule_myotherobject(rowid);
|