sap-archive / cloud-activerecord-maxdb-adapter Goto Github PK
View Code? Open in Web Editor NEWactiverecord-maxdb-adapter
License: Other
activerecord-maxdb-adapter
License: Other
I have a migration with a unique index like this:
add_index :memberships, [:user_id, :group_id], :unique => true
I documented the error in a gist: https://gist.github.com/anonymous/4740614. Most important part:
An error has occurred, all later migrations canceled: ActiveRecord::JDBCError: [-5015] (at 39): Missing keyword:ON: CREATE UNIQUE INDEX idx_rmemberships_[:user_id, :group_id] ON rmemberships([:user_id, :group_id]) from arjdbc/jdbc/RubyJdbcConnection.java:195:in `execute' from /usr/sap/ljs/webapps/nwc_team_calendar/WEB-INF/gems/gems/activerecord-jdbc-adapter-1.2.5/lib/arjdbc/jdbc/adapter.rb:217:in `_execute'
I've got following error when I'm trying to run my app on local server.
ActiveRecord::JDBCError: java.sql.SQLSyntaxErrorException: Syntax error: Encountered "SERIAL" at line 1, column 50.: CREATE TABLE admins (id INTEGER NOT NULL DEFAULT SERIAL PRIMARY KEY, email VARCHAR(255) DEFAULT '' NOT NULL, encrypted_password VARCHAR(255) DEFAULT '' NOT NULL, reset_password_token VARCHAR(255), reset_password_sent_at timestamp, remember_created_at timestamp, sign_in_count INTEGER DEFAULT 0 NOT NULL, current_sign_in_at timestamp, last_sign_in_at timestamp, current_sign_in_ip VARCHAR(255), last_sign_in_ip VARCHAR(255), created_at timestamp, updated_at timestamp)
It also happens on cloud deployment.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.