![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
anydb-sql-2-migrations
Advanced tools
Database migrations for anydb-sql
Create a script called migrate.js
and add the following
#!/usr/bin/env node
var myanydbsql = require('./path/to/my/database/instance');
require('anydb-sql-migrate')
.create(myanydbsql, '/path/to/migrations/dir')
.run();
In your migrations dir, create a file named '001-empty-test.js' and add the code
exports.up = function(transaction) {}
exports.down = function(transaction) {}
The first method is run when upgrading the db, while the second is run when downgrading it. Both methods accept a single parameter - the transaction within which that migration should run.
To check for pending migrations, use
./path/to/migrate.js --check
It should show 001-empty-test
and return a nonzero exit code
To run pending migrations, use
./path/to/migrate.js --execute
It should run the exported empty up
function.
If you want to silently run the migrations, you can pass { silent: true }
to run
and migrate
functions
require('anydb-sql-migrate')
.create(myanydbsql, '/path/to/migrations/dir')
.migrate({ silent: true }); // it will supress only console.logs, not errors
MIT
FAQs
Database migrations for anydb-sql-2
The npm package anydb-sql-2-migrations receives a total of 4 weekly downloads. As such, anydb-sql-2-migrations popularity was classified as not popular.
We found that anydb-sql-2-migrations demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.