I installed the module both from the UI and from Drush but it doesn't seem as if the table is being created on a new install. I only had a few minutes to look at the code and it seems that there is no db_create_table except in the function media_unique_update_7000 will this even fire on a new install?

Comments

Christopher Riley created an issue. See original summary.

joseph.olstad’s picture

Hi Christopher, thanks for reporting, I will fix this on the weekend, asap. If you have a patch, please submit.

joseph.olstad’s picture

one solution might be to call media_unique_update_7000() in the media_unique_install

joseph.olstad’s picture

Priority: Critical » Major
joseph.olstad’s picture

I thought I had fixed this but obviously I didn't test it enough, in mine I had added that table after I installed.
it's now a critical table to the design.

  • joseph.olstad committed fe16656 on 7.x-1.x
    Issue #3016525 by joseph.olstad, Christopher Riley: Table not being...
joseph.olstad’s picture

Status: Active » Fixed
joseph.olstad’s picture

ok , try downloading the module again , uninstall and re-install, it should work this time, if not, let me know.

I'll also test this on simplytest.me shortly.

joseph.olstad’s picture

Hi Christopher Riley, this bug is fixed in the latest 7.x-1.x dev release.

see it working here on simplytest.me https://dm7wi.ply.st/media-unique/batch for the next 24 hours, username: admin password: admin

thanks for reporting

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

joseph.olstad’s picture

Status: Closed (fixed) » Active

  • joseph.olstad committed aa01503 on 7.x-1.x
    Issue #3016525 by joseph.olstad, Christopher Riley: Table not being...
joseph.olstad’s picture

this works for me
cd sites/default;
drush dl media_unique -y;
drush en media_unique -y;
drush sqlc;
describe media_unique;

+-----------+--------------+------+-----+---------+-------+
| Field     | Type         | Null | Key | Default | Extra |
+-----------+--------------+------+-----+---------+-------+
| entity_id | int(11)      | NO   | PRI | NULL    |       |
| sha1      | varchar(256) | YES  |     |         |       |
+-----------+--------------+------+-----+---------+-------+
2 rows in set (0.00 sec)
joseph.olstad’s picture

Status: Active » Fixed

  • joseph.olstad committed 8f6cb8e on 7.x-1.x
    Issue #3016525 by joseph.olstad, Christopher Riley: Table not being...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.